summaryrefslogtreecommitdiff
path: root/archive-zip.c
diff options
context:
space:
mode:
authorRene Scharfe <rene.scharfe@lsrfire.ath.cx>2006-11-18 13:06:56 +0100
committerJunio C Hamano <junkio@cox.net>2006-11-18 11:40:07 -0800
commit38f4d138ee101f3f238ffd43fac76f5b951516c1 (patch)
treeb357fbfe0d8699b8ceb58472c7743267cb48b17b /archive-zip.c
parenta6e8a7677055e092424db42c044774bc6dbd74f6 (diff)
downloadgit-38f4d138ee101f3f238ffd43fac76f5b951516c1.tar.gz
sparse fix: Using plain integer as NULL pointer
Z_NULL is defined as 0, use a proper NULL pointer in its stead. Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'archive-zip.c')
-rw-r--r--archive-zip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/archive-zip.c b/archive-zip.c
index 28e7352e98..ae5572ae20 100644
--- a/archive-zip.c
+++ b/archive-zip.c
@@ -160,7 +160,7 @@ static int write_zip_entry(const unsigned char *sha1,
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)