projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
898eacd
)
builtin/log.c: Fix an "Using plain integer as NULL pointer" warning
author
Ramsay Jones
<ramsay@ramsay1.demon.co.uk>
Sat, 8 Oct 2011 16:18:00 +0000
(17:18 +0100)
committer
Junio C Hamano
<gitster@pobox.com>
Sun, 9 Oct 2011 19:53:04 +0000
(12:53 -0700)
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/log.c
patch
|
blob
|
history
diff --git
a/builtin/log.c
b/builtin/log.c
index e80a925b7b521415b92851222e6a869620a1ff22..4395f3e47168b2b6274026867bddb472dc244f36 100644
(file)
--- 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))