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 "" - 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;