From: Ramsay Jones Date: Sun, 11 Sep 2011 19:25:48 +0000 (+0100) Subject: sparse: Fix an "Using plain integer as NULL pointer" warning X-Git-Tag: v1.7.8-rc0~131^2~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a946ef55f779cfbc9a33f79012ff4d4ed680b5c3;p=git.git sparse: Fix an "Using plain integer as NULL pointer" warning Signed-off-by: Ramsay Jones Signed-off-by: Junio C Hamano --- 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) {