зеркало из https://github.com/microsoft/git.git
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>
This commit is contained in:
Родитель
a6e8a76770
Коммит
38f4d138ee
|
@ -160,7 +160,7 @@ static int write_zip_entry(const unsigned char *sha1,
|
||||||
void *buffer = NULL;
|
void *buffer = NULL;
|
||||||
void *deflated = 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);
|
path = construct_path(base, baselen, filename, S_ISDIR(mode), &pathlen);
|
||||||
if (verbose)
|
if (verbose)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче