diff options
author | Ramsay Jones <ramsay@ramsay1.demon.co.uk> | 2011-09-11 20:25:48 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-09-11 14:43:14 -0700 |
commit | a946ef55f779cfbc9a33f79012ff4d4ed680b5c3 (patch) | |
tree | 62b15a6fac8b9236cf510d045db3a061f4433fac /kwset.c | |
parent | d190a0875ff0f33d60a4d7265f2098b35d162f68 (diff) | |
download | git-a946ef55f779cfbc9a33f79012ff4d4ed680b5c3.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |