builtin/blame.c: Fix a "Using plain integer as NULL pointer" warning
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>
Sun, 13 May 2012 21:41:16 +0000 (22:41 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 14 May 2012 17:19:42 +0000 (10:19 -0700)
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>
builtin/blame.c
index 778d661bef4b61d4e77f63c0971569d6ec954057..24d3dd52920542b993d4945ccb2642a74da5f759 100644 (file)
@@ -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;