summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Ramsay Jones <ramsay@ramsay1.demon.co.uk>2011-09-11 20:25:48 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2011-09-11 14:43:14 -0700
commita946ef55f779cfbc9a33f79012ff4d4ed680b5c3 (patch)
tree62b15a6fac8b9236cf510d045db3a061f4433fac
parentobstack: Fix portability issues (diff)
downloadtgif-a946ef55f779cfbc9a33f79012ff4d4ed680b5c3.tar.xz
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>
-rw-r--r--kwset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kwset.c b/kwset.c
index 956ae72950..51b2ab6c7e 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)
{