aboutsummaryrefslogtreecommitdiffstats
path: root/test/minigzip.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/minigzip.c')
-rw-r--r--test/minigzip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/minigzip.c b/test/minigzip.c
index 83173442dfc7..aa7ac7a0494b 100644
--- a/test/minigzip.c
+++ b/test/minigzip.c
@@ -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;