Skip to content

Commit 85c20c3

Browse files
Ramsay Jonesgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent be89977 commit 85c20c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/blame.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ static int diff_hunks(mmfile_t *file_a, mmfile_t *file_b, long ctxlen,
9393
{
9494
xpparam_t xpp = {0};
9595
xdemitconf_t xecfg = {0};
96-
xdemitcb_t ecb = {0};
96+
xdemitcb_t ecb = {NULL};
9797

9898
xpp.flags = xdl_opts;
9999
xecfg.ctxlen = ctxlen;

0 commit comments

Comments
 (0)