projects
/
platform
/
upstream
/
zlib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2bd5bd7
)
Fix syntax error in gzlib.c.
author
Mark Adler
<madler@alumni.caltech.edu>
Sun, 18 Mar 2012 21:25:00 +0000
(14:25 -0700)
committer
Mark Adler
<madler@alumni.caltech.edu>
Sun, 18 Mar 2012 21:25:00 +0000
(14:25 -0700)
gzlib.c
patch
|
blob
|
history
diff --git
a/gzlib.c
b/gzlib.c
index
e31533b
..
e4908e0
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;