summaryrefslogtreecommitdiff
path: root/gzlib.c
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 /gzlib.c
parent2bd5bd78a6f76553c38ab3a37e5b08b6c5f1610a (diff)
downloadzlib-04afd39fcc753e2f1369cb471cb6592ea5946546.tar.gz
Fix syntax error in gzlib.c.
Diffstat (limited to '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)
/* save the path name for error messages */
# define WPATH "<widepath>"
- state->path = malloc(strlen(fd == -2 ? WPATH : (path) + 1);
+ state->path = malloc(strlen(fd == -2 ? WPATH : path) + 1);
if (state->path == NULL) {
free(state);
return NULL;