Skip to content

Commit

Permalink
builtin/blame.c: Fix a "Using plain integer as NULL pointer" warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ramsay Jones authored and Junio C Hamano committed May 14, 2012
1 parent be89977 commit 85c20c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/blame.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 85c20c3

Please sign in to comment.