From aa575f815e2350e46a1895a6905fd8ad548c946a Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Sun, 8 May 2005 14:02:19 -0700 Subject: [PATCH] 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 --- read-cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/read-cache.c b/read-cache.c index 47aa2d446..da2adf461 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, -- 2.26.2