summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--reordercap.c2
-rw-r--r--wiretap/file_access.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/reordercap.c b/reordercap.c
index ace835293c..ce563bea72 100644
--- a/reordercap.c
+++ b/reordercap.c
@@ -204,8 +204,6 @@ int main(int argc, char *argv[])
exit(1);
}
- init_open_routines();
-
/* Open infile */
/* TODO: if reordercap is ever changed to give the user a choice of which
open_routine reader to use, then the following needs to change. */
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;