summaryrefslogtreecommitdiff
path: root/read-cache.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-05-08 21:02:19 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-05-08 21:02:19 (GMT)
commitaa575f815e2350e46a1895a6905fd8ad548c946a (patch)
treea1fc162839fce13f4be8ced10d87527e6c9d32ec /read-cache.c
parentddd5d0568d2b3f5f5ec22e13fedbfd041b49019c (diff)
downloadgit-aa575f815e2350e46a1895a6905fd8ad548c946a.zip
git-aa575f815e2350e46a1895a6905fd8ad548c946a.tar.gz
git-aa575f815e2350e46a1895a6905fd8ad548c946a.tar.bz2
A stylistic fix to read-cache.c
Changes "if (pointer == 0)" to "if (!pointer)" to match the rest of the code, noticed by Petr Baudis. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'read-cache.c')
-rw-r--r--read-cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/read-cache.c b/read-cache.c
index 47aa2d4..da2adf4 100644
--- a/read-cache.c
+++ b/read-cache.c
@@ -152,7 +152,7 @@ static int check_file_directory_conflict(const struct cache_entry *ce,
cp = pathbuf;
while (1) {
char *ep = strchr(cp, '/');
- if (ep == 0)
+ if (!ep)
break;
*ep = 0; /* first cut it at slash */
pos = cache_name_pos(pathbuf,