git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Date
Sep 11, 2011, 19:25 UTC
Message-ID
<4E6D0B3C.4050402@ramsay1.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
Message 1 of 1 in “sparse: Fix an "Using plain integer as NULL pointer" warning”
  1. 1/2 sparse: Fix an "Using plain integer as NULL pointer" warningRamsay Jones, Sep 11, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.