Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>2011-09-11 23:25:48 +0400
committerJunio C Hamano <gitster@pobox.com>2011-09-12 01:43:14 +0400
commita946ef55f779cfbc9a33f79012ff4d4ed680b5c3 (patch)
tree62b15a6fac8b9236cf510d045db3a061f4433fac /kwset.c
parentd190a0875ff0f33d60a4d7265f2098b35d162f68 (diff)
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>
Diffstat (limited to 'kwset.c')
-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)
{