diff options
Diffstat (limited to 'wiretap')
-rw-r--r-- | wiretap/file_wrappers.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/wiretap/file_wrappers.c b/wiretap/file_wrappers.c index 69f61eaadc..575d108acb 100644 --- a/wiretap/file_wrappers.c +++ b/wiretap/file_wrappers.c @@ -408,15 +408,16 @@ fast_seek_reset(FILE_T state) break; case ZLIB: -#ifdef HAVE_ZLIB +#ifdef USE_ZLIB_OR_ZLIBNG if (state->fast_seek_cur != NULL) { struct zlib_cur_seek_point *cur = (struct zlib_cur_seek_point *) state->fast_seek_cur; cur->have = 0; } #else - /* Fail if we don't have zlibng, as that shouldn't happen? */ -#endif /* HAVE_ZLIB */ + /* This "cannot happen" */ + ws_assert_not_reached(); +#endif /* USE_ZLIB_OR_ZLIBNG */ break; case GZIP_AFTER_HEADER: |