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