From: Ramsay Jones Date: Sat, 8 Oct 2011 16:18:00 +0000 (+0100) Subject: builtin/log.c: Fix an "Using plain integer as NULL pointer" warning X-Git-Tag: v1.7.9-rc0~37^2~5 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=22a8699a6b1587024b884a80d88631db6a0ef511;p=git.git builtin/log.c: Fix an "Using plain integer as NULL pointer" warning Signed-off-by: Ramsay Jones Signed-off-by: Junio C Hamano --- diff --git a/builtin/log.c b/builtin/log.c index e80a925b7..4395f3e47 100644 --- a/builtin/log.c +++ b/builtin/log.c @@ -1040,7 +1040,7 @@ static char *find_branch_name(struct rev_info *rev) if (positive < 0) return NULL; strbuf_addf(&buf, "refs/heads/%s", rev->cmdline.rev[positive].name); - branch = resolve_ref(buf.buf, branch_sha1, 1, 0); + branch = resolve_ref(buf.buf, branch_sha1, 1, NULL); if (!branch || prefixcmp(branch, "refs/heads/") || hashcmp(rev->cmdline.rev[positive].item->sha1, branch_sha1))