aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/file_access.c
diff options
context:
space:
mode:
authorMichal Labedzki <michal.labedzki@tieto.com>2014-05-28 17:47:41 +0200
committerEvan Huus <eapache@gmail.com>2014-06-04 00:48:59 +0000
commitc6d175ef67a091bdf024c11469a22b59f64f2345 (patch)
tree0c4cb2df7d3b8548728d428abe11eb1d69bab356 /wiretap/file_access.c
parent88581a68e74ede6235c98f8d616c0fca5cd3a2e2 (diff)
Guarantee that open routines are initialized
Open routines need to be initialized before try to open capture or add/remove routine. Change-Id: Ic3b88eef947ebd4a3dd2edf8120bb6bd8aec0765 Reviewed-on: https://code.wireshark.org/review/1874 Reviewed-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'wiretap/file_access.c')
-rw-r--r--wiretap/file_access.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wiretap/file_access.c b/wiretap/file_access.c
index f118f082a0..995d00393c 100644
--- a/wiretap/file_access.c
+++ b/wiretap/file_access.c
@@ -683,6 +683,8 @@ wtap* wtap_open_offline(const char *filename, unsigned int type, int *err, char
gboolean use_stdin = FALSE;
gchar *extension;
+ init_open_routines();
+
/* open standard input if filename is '-' */
if (strcmp(filename, "-") == 0)
use_stdin = TRUE;