diff options
author | Ramsay Jones <ramsay@ramsay1.demon.co.uk> | 2012-05-13 22:41:16 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-05-14 10:19:42 -0700 |
commit | 85c20c304f991b33b59fbf00182a66f5cf6d2960 (patch) | |
tree | 6ced55f97c20bf5990cde213354b4f1987cca1ae /builtin/blame.c | |
parent | be89977543c7798411f336236a506bf07b0a3d71 (diff) | |
download | git-85c20c304f991b33b59fbf00182a66f5cf6d2960.tar.gz git-85c20c304f991b33b59fbf00182a66f5cf6d2960.tar.xz |
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 <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/blame.c')
-rw-r--r-- | builtin/blame.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |