diff --git a/file.c b/file.c index 6326739012..6766c8097a 100644 --- a/file.c +++ b/file.c @@ -3796,12 +3796,12 @@ cf_save(capture_file *cf, const char *fname, packet_range_t *range, guint save_f we have to do it by writing the packets out in Wiretap. */ wtapng_section_t *shb_hdr = NULL; - wtapng_iface_descriptions_t *idb_inf = NULL; + wtapng_iface_descriptions_t *idb_inf = NULL; - shb_hdr = wtap_file_get_shb_info(cf->wth); - idb_inf = wtap_file_get_idb_info(cf->wth); + shb_hdr = wtap_file_get_shb_info(cf->wth); + idb_inf = wtap_file_get_idb_info(cf->wth); - pdh = wtap_dump_open_ng(fname, save_format, cf->lnk_t, cf->snap, + pdh = wtap_dump_open_ng(fname, save_format, cf->lnk_t, cf->snap, compressed, shb_hdr, idb_inf, &err); if (pdh == NULL) { cf_open_failure_alert_box(fname, err, NULL, TRUE, save_format);