tpws : gzip.c bad if

This commit is contained in:
bolvan 2019-05-10 16:54:54 +03:00
parent be487f7475
commit be5b248cdd
9 changed files with 0 additions and 1 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -39,7 +39,6 @@ int z_readfile(FILE *F,char **buf,size_t *size)
{ {
bufsize += BUFCHUNK; bufsize += BUFCHUNK;
newbuf = *buf ? realloc(*buf,bufsize) : malloc(bufsize); newbuf = *buf ? realloc(*buf,bufsize) : malloc(bufsize);
if (newbuf==*buf)
if (!newbuf) if (!newbuf)
{ {
r = Z_MEM_ERROR; r = Z_MEM_ERROR;