From 85c20c304f991b33b59fbf00182a66f5cf6d2960 Mon Sep 17 00:00:00 2001 From: Ramsay Jones Date: Sun, 13 May 2012 22:41:16 +0100 Subject: [PATCH] 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 Signed-off-by: Junio C Hamano --- builtin/blame.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.11.4.GIT