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

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Junio C Hamano <junkio@...>
Cc: Git Mailing List <git@...>
Date: Saturday, November 18, 2006 - 8:06 am

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

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] sparse fix: Using plain integer as NULL pointer, Rene Scharfe, (Sat Nov 18, 8:06 am)