aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2012-03-18 14:25:00 -0700
committerMark Adler <madler@alumni.caltech.edu>2012-03-18 14:25:00 -0700
commit04afd39fcc753e2f1369cb471cb6592ea5946546 (patch)
tree9d8e06082233bf1da65fed292095d1957744c3a2
parent2bd5bd78a6f76553c38ab3a37e5b08b6c5f1610a (diff)
downloadzlib-04afd39fcc753e2f1369cb471cb6592ea5946546.tar.gz
zlib-04afd39fcc753e2f1369cb471cb6592ea5946546.tar.bz2
zlib-04afd39fcc753e2f1369cb471cb6592ea5946546.zip
Fix syntax error in gzlib.c.
-rw-r--r--gzlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gzlib.c b/gzlib.c
index e31533b..e4908e0 100644
--- a/gzlib.c
+++ b/gzlib.c
@@ -186,7 +186,7 @@ local gzFile gz_open(path, fd, mode)
186 186
187 /* save the path name for error messages */ 187 /* save the path name for error messages */
188# define WPATH "<widepath>" 188# define WPATH "<widepath>"
189 state->path = malloc(strlen(fd == -2 ? WPATH : (path) + 1); 189 state->path = malloc(strlen(fd == -2 ? WPATH : path) + 1);
190 if (state->path == NULL) { 190 if (state->path == NULL) {
191 free(state); 191 free(state);
192 return NULL; 192 return NULL;