Skip to content

Commit

Permalink
sparse: Fix an "Using plain integer as NULL pointer" warning
Browse files Browse the repository at this point in the history
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 Sep 11, 2011
1 parent d190a08 commit a946ef5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kwset.c
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ cwexec (kwset_t kws, char const *text, size_t len, struct kwsmatch *kwsmatch)
copy of the preceding main search loops. */
if (lim - mch > kwset->maxd)
lim = mch + kwset->maxd;
lmch = 0;
lmch = NULL;
d = 1;
while (lim - end >= d)
{
Expand Down

0 comments on commit a946ef5

Please sign in to comment.