Don't assign to a proto_item * if the value won't be used: Coverity 823 & 824;
[obnox/wireshark/wip.git] / file.c
diff --git a/file.c b/file.c
index 72c1f3958e98fb4dfbdf524d427df4a052a85ac6..075d688f042e96024b3c36567349674a387c21ed 100644 (file)
--- a/file.c
+++ b/file.c
@@ -73,6 +73,7 @@
 #include <epan/dfilter/dfilter-macro.h>
 #include <wsutil/file_util.h>
 #include <epan/strutil.h>
+#include <epan/addr_resolv.h>
 
 #ifdef HAVE_LIBPCAP
 gboolean auto_scroll_live;
@@ -359,6 +360,9 @@ cf_open(capture_file *cf, const char *fname, gboolean is_tempfile, int *err)
     ber_set_filename(cf->filename);
   }
 
+  wtap_set_cb_new_ipv4(cf->wth, add_ipv4_name);
+  wtap_set_cb_new_ipv6(cf->wth, (wtap_new_ipv6_callback_t) add_ipv6_name);
+
   return CF_OK;
 
 fail: