summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ddd5d05)
raw | patch | inline | side by side (parent: ddd5d05)
author | Junio C Hamano <junkio@cox.net> | |
Sun, 8 May 2005 21:02:19 +0000 (14:02 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sun, 8 May 2005 21:02:19 +0000 (14:02 -0700) |
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>
of the code, noticed by Petr Baudis.
Signed-off-by: Junio C Hamano <junkio@cox.net>
read-cache.c | patch | blob | history |
diff --git a/read-cache.c b/read-cache.c
index 47aa2d446958e48623bc1bdf3675799a9d851cdb..da2adf4612c3a1cb39fbb76e303302e9b7e1356b 100644 (file)
--- a/read-cache.c
+++ b/read-cache.c
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,