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

[PATCH] sparse fix: Using plain integer as NULL pointer

From
Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Date
Nov 18, 2006, 12:06 UTC
Message-ID
<455EF760.6040505@lsrfire.ath.cx>
Z_NULL is defined as 0, use a proper NULL pointer in its stead.
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
---
 archive-zip.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/archive-zip.c b/archive-zip.c
index 28e7352..ae5572a 100644
--- a/archive-zip.c
+++ b/archive-zip.c
@@ -160,7 +160,7 @@ static int write_zip_entry(const unsigne
 	void *buffer = NULL;
 	void *deflated = NULL;
 
-	crc = crc32(0, Z_NULL, 0);
+	crc = crc32(0, NULL, 0);
 
 	path = construct_path(base, baselen, filename, S_ISDIR(mode), &pathlen);
 	if (verbose)
-- 
1.4.4
Message 1 of 1 in “sparse fix: Using plain integer as NULL pointer”
  1. sparse fix: Using plain integer as NULL pointerRene Scharfe, Nov 18, 2006

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.