diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2015-07-28 23:13:53 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2015-07-28 23:13:53 -0700 |
commit | c901a34c92c4aa74028f541a9773df726ce2b769 (patch) | |
tree | ef30311a5dd8510d2f27b82c1f4b7ed4c112234c /gzwrite.c | |
parent | 51a223def4382fdd0c9531ba77bd10724eae9f5f (diff) | |
download | zlib-c901a34c92c4aa74028f541a9773df726ce2b769.tar.gz zlib-c901a34c92c4aa74028f541a9773df726ce2b769.tar.bz2 zlib-c901a34c92c4aa74028f541a9773df726ce2b769.zip |
Avoid uninitialized access by gzclose_w().
Diffstat (limited to '')
-rw-r--r-- | gzwrite.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -47,6 +47,7 @@ local int gz_init(state) | |||
47 | gz_error(state, Z_MEM_ERROR, "out of memory"); | 47 | gz_error(state, Z_MEM_ERROR, "out of memory"); |
48 | return -1; | 48 | return -1; |
49 | } | 49 | } |
50 | strm->next_in = NULL; | ||
50 | } | 51 | } |
51 | 52 | ||
52 | /* mark state as initialized */ | 53 | /* mark state as initialized */ |