]> git.lizzy.rs Git - zlib.git/blobdiff - gzwrite.c
Fix CLEAR_HASH macro to be usable as a single statement.
[zlib.git] / gzwrite.c
index b86625146162766b67dddf32d698398ae286fca1..c7b5651d70b994e20222a734c620f68e11e0dc84 100644 (file)
--- a/gzwrite.c
+++ b/gzwrite.c
@@ -1,5 +1,5 @@
 /* gzwrite.c -- zlib functions for writing gzip files
- * Copyright (C) 2004, 2005, 2010, 2011, 2012, 2013 Mark Adler
+ * Copyright (C) 2004-2017 Mark Adler
  * For conditions of distribution and use, see copyright notice in zlib.h
  */
 
@@ -117,6 +117,7 @@ local int gz_comp(state, flush)
             if (strm->avail_out == 0) {
                 strm->avail_out = state->size;
                 strm->next_out = state->out;
+                state->x.next = state->out;
             }
         }