Skip to content
Browse files

sparse: Fix an "Using plain integer as NULL pointer" warning

Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information...
1 parent d190a08 commit a946ef55f779cfbc9a33f79012ff4d4ed680b5c3 Ramsay Jones committed with gitster
Showing with 1 addition and 1 deletion.
  1. +1 −1 kwset.c
View
2 kwset.c
@@ -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)
{

0 comments on commit a946ef5

Please sign in to comment.
Something went wrong with that request. Please try again.