{"thread":{"id":"28632","subject":"[PATCH] builtin/log.c: Fix an \"Using plain integer as NULL pointer\" warning","startedAt":"2011-10-08T16:18:00Z","lastAt":"2011-10-08T16:18:00Z","messageCount":1,"participants":["Ramsay Jones"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"177231","messageId":"4E9077B8.7080202@ramsay1.demon.co.uk","threadId":"28632","inReplyTo":null,"subject":"[PATCH] builtin/log.c: Fix an \"Using plain integer as NULL pointer\" warning","fromName":"Ramsay Jones","fromEmail":"ramsay@ramsay1.demon.co.uk","sentAt":"2011-10-08T16:18:00Z","receivedAt":"2011-10-08T16:18:00Z","isPatch":true,"sender":{"key":"ramsay@ramsayjones.plus.com","avatar":"https://avatars.githubusercontent.com/u/33702710?v=4"},"body":"\nSigned-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>\n---\n\nHi Junio,\n\nI wanted to request that you squash this into commit 739453a3\n(format-patch: use branch description in cover letter, 21-09-2011).\nBut, since that's in next ...\n\nHmm, I should probably start at least building the pu branch so that\nI could catch these things earlier ...\n\nATB,\nRamsay Jones\n\n builtin/log.c |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/builtin/log.c b/builtin/log.c\nindex e80a925..4395f3e 100644\n--- a/builtin/log.c\n+++ b/builtin/log.c\n@@ -1040,7 +1040,7 @@ static char *find_branch_name(struct rev_info *rev)\n \tif (positive < 0)\n \t\treturn NULL;\n \tstrbuf_addf(&buf, \"refs/heads/%s\", rev->cmdline.rev[positive].name);\n-\tbranch = resolve_ref(buf.buf, branch_sha1, 1, 0);\n+\tbranch = resolve_ref(buf.buf, branch_sha1, 1, NULL);\n \tif (!branch ||\n \t    prefixcmp(branch, \"refs/heads/\") ||\n \t    hashcmp(rev->cmdline.rev[positive].item->sha1, branch_sha1))\n-- \n1.7.7\n"}]}