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>
This commit is contained in:
parent
ddd5d0568d
commit
aa575f815e
@ -152,7 +152,7 @@ static int check_file_directory_conflict(const struct cache_entry *ce,
|
|||||||
cp = pathbuf;
|
cp = pathbuf;
|
||||||
while (1) {
|
while (1) {
|
||||||
char *ep = strchr(cp, '/');
|
char *ep = strchr(cp, '/');
|
||||||
if (ep == 0)
|
if (!ep)
|
||||||
break;
|
break;
|
||||||
*ep = 0; /* first cut it at slash */
|
*ep = 0; /* first cut it at slash */
|
||||||
pos = cache_name_pos(pathbuf,
|
pos = cache_name_pos(pathbuf,
|
||||||
|
Loading…
Reference in New Issue
Block a user