From a946ef55f779cfbc9a33f79012ff4d4ed680b5c3 Mon Sep 17 00:00:00 2001 From: Ramsay Jones Date: Sun, 11 Sep 2011 20:25:48 +0100 Subject: [PATCH] sparse: Fix an "Using plain integer as NULL pointer" warning Signed-off-by: Ramsay Jones Signed-off-by: Junio C Hamano --- kwset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kwset.c b/kwset.c index 956ae7295..51b2ab6c7 100644 --- a/kwset.c +++ b/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) { -- 2.26.2