Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2005-07-03 21:10:45 +0400
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-03 21:10:45 +0400
commit6da4016aea2dc5bf311fea160bd8ef96ca82b999 (patch)
tree24f35b804286e5d0b86df471f5c48b339507f221 /ls-tree.c
parent44c9e8594e7854fcead68ae0959e00137c2bbb59 (diff)
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.
Diffstat (limited to 'ls-tree.c')
-rw-r--r--ls-tree.c2
1 files changed, 1 insertions, 1 deletions
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;