From: Ramsay Jones Date: Sun, 13 May 2012 21:41:16 +0000 (+0100) Subject: builtin/blame.c: Fix a "Using plain integer as NULL pointer" warning X-Git-Tag: v1.7.11-rc0~24^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=85c20c304f991b33b59fbf00182a66f5cf6d2960;p=git.git 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 --- diff --git a/builtin/blame.c b/builtin/blame.c index 778d661be..24d3dd529 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;