Skip to contentSkip to conversation

sparse: Fix an "Using plain integer as NULL pointer" warning

PATCH In review Ramsay Jones 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

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

---
 kwset.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
kwset.c +1 -1
index 956ae72..51b2ab6 100644
@@ -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)
     {
Signature · 1 line
1.7.6