diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2011-09-11 11:04:49 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2011-09-11 11:04:49 -0700 |
commit | 10daf0d4d7815447799d555d04d30325836e1d44 (patch) | |
tree | 75579fbe11e42dc3197acca53f5f887ac3808b57 /gzlib.c | |
parent | 9712272c78b9d9c93746d9c8e156a3728c65ca72 (diff) | |
download | zlib-1.2.5.1.tar.gz zlib-1.2.5.1.tar.bz2 zlib-1.2.5.1.zip |
zlib 1.2.5.1v1.2.5.1
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) |