Git development
 help / color / mirror / Atom feed
* [PATCH 1/2] sparse: Fix an "Using plain integer as NULL pointer" warning
@ 2011-09-11 19:25 Ramsay Jones
  0 siblings, 0 replies; only message in thread
From: Ramsay Jones @ 2011-09-11 19:25 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: GIT Mailing-list



Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
---
 kwset.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kwset.c b/kwset.c
index 956ae72..51b2ab6 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)
     {
-- 
1.7.6

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-09-11 19:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-11 19:25 [PATCH 1/2] sparse: Fix an "Using plain integer as NULL pointer" warning Ramsay Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox