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

1 messages from 2011-09-11 to 2011-09-11. Participants: Ramsay Jones.
Thread: https://gitlist.dev/t/28361

## Ramsay Jones, 2011-09-11 19:25

Subject: [PATCH 1/2] sparse: Fix an "Using plain integer as NULL pointer" warning
Message-ID: <4E6D0B3C.4050402@ramsay1.demon.co.uk>
URL: https://gitlist.dev/e/4E6D0B3C.4050402%40ramsay1.demon.co.uk

```


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

```
