Skip to contentSkip to conversation

sparse fix: Using plain integer as NULL pointer

PATCH New Rene Scharfe 1 participant 1 message Aug 11, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sparse fix: Using plain integer as NULL pointer

Z_NULL is defined as 0, use a proper NULL pointer in its stead.

---
 archive-zip.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
archive-zip.c +1 -1
index 28e7352..ae5572a 100644
@@ -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)
Signature · 1 line
1.4.4