summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLibravatar Ramsay Jones <ramsay@ramsay1.demon.co.uk>2012-05-13 22:41:16 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-05-14 10:19:42 -0700
commit85c20c304f991b33b59fbf00182a66f5cf6d2960 (patch)
tree6ced55f97c20bf5990cde213354b4f1987cca1ae /builtin
parentxdiff: remove unused functions (diff)
downloadtgif-85c20c304f991b33b59fbf00182a66f5cf6d2960.tar.xz
builtin/blame.c: Fix a "Using plain integer as NULL pointer" warning
Plain gcc may not but sparse catches and complains about this sort of stuff. Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
-rw-r--r--builtin/blame.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/blame.c b/builtin/blame.c
index 778d661bef..24d3dd5292 100644
--- a/builtin/blame.c
+++ b/builtin/blame.c
@@ -93,7 +93,7 @@ static int diff_hunks(mmfile_t *file_a, mmfile_t *file_b, long ctxlen,
{
xpparam_t xpp = {0};
xdemitconf_t xecfg = {0};
- xdemitcb_t ecb = {0};
+ xdemitcb_t ecb = {NULL};
xpp.flags = xdl_opts;
xecfg.ctxlen = ctxlen;