diff options
Diffstat (limited to 'zlibWrapper/gzlib.c')
| -rw-r--r-- | zlibWrapper/gzlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zlibWrapper/gzlib.c b/zlibWrapper/gzlib.c index 8235cff4fda1..3070dd8b4975 100644 --- a/zlibWrapper/gzlib.c +++ b/zlibWrapper/gzlib.c @@ -111,7 +111,7 @@ local gzFile gz_open(path, fd, mode) return NULL; /* allocate gzFile structure to return */ - state = (gz_statep)(gz_state*)malloc(sizeof(gz_state)); + state.state = (gz_state*)malloc(sizeof(gz_state)); if (state.state == NULL) return NULL; state.state->size = 0; /* no buffers allocated yet */ @@ -266,7 +266,7 @@ local gzFile gz_open(path, fd, mode) gz_reset(state); /* return stream */ - return (gzFile)state.file; + return state.file; } /* -- see zlib.h -- */ |
