From 6da4016aea2dc5bf311fea160bd8ef96ca82b999 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Sun, 3 Jul 2005 10:10:45 -0700 Subject: Fix sparse warnings. Mainly making a lot of local functions and variables be marked "static", but there was a "zero as NULL" warning in there too. --- ls-tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ls-tree.c') diff --git a/ls-tree.c b/ls-tree.c index 450bff2472..8d524b89a2 100644 --- a/ls-tree.c +++ b/ls-tree.c @@ -79,7 +79,7 @@ static struct tree_entry_list *find_entry(const char *path) slash = strchr(path, '/'); if (!slash) { len = strlen(path); - next = 0; + next = NULL; } else { next = slash + 1; -- cgit v1.2.3