aboutsummaryrefslogtreecommitdiff
path: root/gzlib.c
diff options
context:
space:
mode:
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)
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;