summaryrefslogtreecommitdiff
path: root/gzlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'gzlib.c')
-rw-r--r--gzlib.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gzlib.c b/gzlib.c
index 603e60e..d16b249 100644
--- a/gzlib.c
+++ b/gzlib.c
@@ -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)