From 10daf0d4d7815447799d555d04d30325836e1d44 Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Sun, 11 Sep 2011 11:04:49 -0700 Subject: zlib 1.2.5.1 --- gzlib.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gzlib.c') 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) { gz_statep state; + /* check input */ + if (path == NULL) + return NULL; + /* allocate gzFile structure to return */ state = malloc(sizeof(gz_state)); if (state == NULL) -- cgit v1.2.1