aboutsummaryrefslogtreecommitdiffstats
path: root/tshark.c
diff options
context:
space:
mode:
Diffstat (limited to 'tshark.c')
-rw-r--r--tshark.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tshark.c b/tshark.c
index 15d1563f77..f8c9646a3e 100644
--- a/tshark.c
+++ b/tshark.c
@@ -949,6 +949,11 @@ main(int argc, char *argv[])
timestamp_set_precision(TS_PREC_AUTO);
timestamp_set_seconds_type(TS_SECONDS_DEFAULT);
+ /*
+ * Libwiretap must be initialized before libwireshark is, so that
+ * dissection-time handlers for file-type-dependent blocks can
+ * register using the file type/subtype value for the file type.
+ */
wtap_init(TRUE);
/* Register all dissectors; we must do this before checking for the