Skip to content

Commit 22a8699

Browse files
Ramsay Jonesgitster
authored andcommitted
builtin/log.c: Fix an "Using plain integer as NULL pointer" warning
Signed-off-by: Ramsay Jones <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 898eacd commit 22a8699

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/log.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1040,7 +1040,7 @@ static char *find_branch_name(struct rev_info *rev)
10401040
if (positive < 0)
10411041
return NULL;
10421042
strbuf_addf(&buf, "refs/heads/%s", rev->cmdline.rev[positive].name);
1043-
branch = resolve_ref(buf.buf, branch_sha1, 1, 0);
1043+
branch = resolve_ref(buf.buf, branch_sha1, 1, NULL);
10441044
if (!branch ||
10451045
prefixcmp(branch, "refs/heads/") ||
10461046
hashcmp(rev->cmdline.rev[positive].item->sha1, branch_sha1))

0 commit comments

Comments
 (0)