We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a99edcb commit bbc8a18Copy full SHA for bbc8a18
src/fwrite.c
@@ -984,10 +984,11 @@ void fwriteMain(fwriteMainArgs args)
984
#ifndef NOZLIB
985
size_t mylen = 0;
986
int mycrc = 0;
987
- z_stream *mystream = &thread_streams[me];
+ z_stream *mystream = NULL;
988
void *myzBuff = NULL;
989
size_t myzbuffUsed = 0;
990
if (args.is_gzip) {
991
+ mystream = &thread_streams[me];
992
myzBuff = zbuffPool + me * zbuffSize;
993
if (init_stream(mystream) != Z_OK) { // this should be thread safe according to zlib documentation
994
failed = true; // # nocov
0 commit comments