threads / patch / 28361

patch, 2 partssparse: Fix an "Using plain integer as NULL pointer" warning

Subject: [PATCH 1/2] sparse: Fix an "Using plain integer as NULL pointer" warning

## tl;dr

One message between Sep 11, 2011 and Sep 11, 2011. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Ramsay Jones· Sep 11, 2011, 19:25 UTC · lore
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
---
 kwset.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Show changes to kwset.c +1 −1
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

← back to recent threads