diff options
Diffstat (limited to 'usr/src/contrib/zlib/deflate.c')
-rw-r--r-- | usr/src/contrib/zlib/deflate.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr/src/contrib/zlib/deflate.c b/usr/src/contrib/zlib/deflate.c index 5cdb078df6..771aad0ec2 100644 --- a/usr/src/contrib/zlib/deflate.c +++ b/usr/src/contrib/zlib/deflate.c @@ -188,8 +188,11 @@ local const config configuration_table[10] = { * prev[] will be initialized on the fly. */ #define CLEAR_HASH(s) \ - s->head[s->hash_size-1] = NIL; \ - zmemzero((Bytef *)s->head, (unsigned)(s->hash_size-1)*sizeof(*s->head)); + do { \ + s->head[s->hash_size-1] = NIL; \ + zmemzero((Bytef *)s->head, \ + (unsigned)(s->hash_size-1)*sizeof(*s->head)); \ + } while (0) /* =========================================================================== * Slide the hash table when sliding the window down (could be avoided with 32 |