aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2016-12-04 14:20:37 -0800
committerGuy Harris <guy@alum.mit.edu>2016-12-04 22:21:06 +0000
commitbded2b681485fe9a91041688bcb41d371c9099e8 (patch)
tree61702f4fa10261646bcf5cfd44d714f15b801e9a
parentab07f8e0f89eb1bb2c2c61c71e44e3fd0e31cc52 (diff)
Rawshark uses libwiretap, so it has to call wtap_init().
Change-Id: I4b87227e4828ebad98b22e5e5d1f3896e636582a Reviewed-on: https://code.wireshark.org/review/19070 Reviewed-by: Guy Harris <guy@alum.mit.edu>
-rw-r--r--rawshark.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/rawshark.c b/rawshark.c
index d4acc8af94..ed88215047 100644
--- a/rawshark.c
+++ b/rawshark.c
@@ -514,6 +514,8 @@ main(int argc, char *argv[])
timestamp_set_precision(TS_PREC_AUTO);
timestamp_set_seconds_type(TS_SECONDS_DEFAULT);
+ wtap_init();
+
/* Register all dissectors; we must do this before checking for the
"-G" flag, as the "-G" flag dumps information registered by the
dissectors, and we must do it before we read the preferences, in