Skip to content

Commit a946ef5

Browse files
Ramsay Jonesgitster
Ramsay Jones
authored andcommitted
sparse: Fix an "Using plain integer as NULL pointer" warning
Signed-off-by: Ramsay Jones <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d190a08 commit a946ef5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kwset.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ cwexec (kwset_t kws, char const *text, size_t len, struct kwsmatch *kwsmatch)
674674
copy of the preceding main search loops. */
675675
if (lim - mch > kwset->maxd)
676676
lim = mch + kwset->maxd;
677-
lmch = 0;
677+
lmch = NULL;
678678
d = 1;
679679
while (lim - end >= d)
680680
{

0 commit comments

Comments
 (0)