diff options
Diffstat (limited to 'gzlib.c')
-rw-r--r-- | gzlib.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -91,6 +91,10 @@ local gzFile gz_open(path, fd, mode) | |||
91 | { | 91 | { |
92 | gz_statep state; | 92 | gz_statep state; |
93 | 93 | ||
94 | /* check input */ | ||
95 | if (path == NULL) | ||
96 | return NULL; | ||
97 | |||
94 | /* allocate gzFile structure to return */ | 98 | /* allocate gzFile structure to return */ |
95 | state = malloc(sizeof(gz_state)); | 99 | state = malloc(sizeof(gz_state)); |
96 | if (state == NULL) | 100 | if (state == NULL) |