]> git.lizzy.rs Git - zlib.git/commitdiff
Fix syntax error in gzlib.c.
authorMark Adler <madler@alumni.caltech.edu>
Sun, 18 Mar 2012 21:25:00 +0000 (14:25 -0700)
committerMark Adler <madler@alumni.caltech.edu>
Sun, 18 Mar 2012 21:25:00 +0000 (14:25 -0700)
gzlib.c

diff --git a/gzlib.c b/gzlib.c
index e31533b7496d366091ecf4f7bf5fc273fc101c01..e4908e00393f52969e8565ef037d2f714a36b0f4 100644 (file)
--- 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;