1 --- gzwrite.c 2010-01-18 21:18:27.000000000 +0100
2 +++ gzwrite.c 2010-01-28 04:37:20.330530306 +0100
4 state = (gz_statep)file;
6 /* check that we're writing and that there's no error */
7 - if (state->mode != GZ_WRITE|| state->err != Z_OK)
8 + if (state->mode != GZ_WRITE || state->err != Z_OK)
9 + return Z_STREAM_ERROR;
11 /* check flush parameter */
12 if (flush < 0 || flush > Z_FINISH)