mirror of https://github.com/madler/zlib
Fix bug in test/minigzip.c for configure --solo.
This commit is contained in:
parent
755c41dc4b
commit
41a18e1d7e
|
@ -197,7 +197,7 @@ gzFile gz_open(path, fd, mode)
|
|||
gzFile gz;
|
||||
int ret;
|
||||
|
||||
gz = malloc(sizeof(gzFile));
|
||||
gz = malloc(sizeof(struct gzFile_s));
|
||||
if (gz == NULL)
|
||||
return NULL;
|
||||
gz->write = strchr(mode, 'w') != NULL;
|
||||
|
|
Loading…
Reference in New Issue