diff options
| -rw-r--r-- | deflate.c | 7 |
1 files changed, 5 insertions, 2 deletions
| @@ -190,8 +190,11 @@ local const config configuration_table[10] = { | |||
| 190 | * prev[] will be initialized on the fly. | 190 | * prev[] will be initialized on the fly. |
| 191 | */ | 191 | */ |
| 192 | #define CLEAR_HASH(s) \ | 192 | #define CLEAR_HASH(s) \ |
| 193 | s->head[s->hash_size-1] = NIL; \ | 193 | do { \ |
| 194 | zmemzero((Bytef *)s->head, (unsigned)(s->hash_size-1)*sizeof(*s->head)); | 194 | s->head[s->hash_size-1] = NIL; \ |
| 195 | zmemzero((Bytef *)s->head, \ | ||
| 196 | (unsigned)(s->hash_size-1)*sizeof(*s->head)); \ | ||
| 197 | } while (0) | ||
| 195 | 198 | ||
| 196 | /* =========================================================================== | 199 | /* =========================================================================== |
| 197 | * Slide the hash table when sliding the window down (could be avoided with 32 | 200 | * Slide the hash table when sliding the window down (could be avoided with 32 |
