DORMANTno replies

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

From: Ramsay Jones <hidden>
Date: 2016-06-15 22:52:01
Subsystem: the rest · Maintainer: Linus Torvalds


Signed-off-by: Ramsay Jones <redacted>
---
 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help