aboutsummaryrefslogtreecommitdiffstats
path: root/tethereal.c
diff options
context:
space:
mode:
authorLuis Ontanon <luis.ontanon@gmail.com>2005-02-28 00:55:49 +0000
committerLuis Ontanon <luis.ontanon@gmail.com>2005-02-28 00:55:49 +0000
commit5319cabe887ec002ab0bc59ad602133425796209 (patch)
treecf15e3d886bf844918275bdbd98da1e562f4925a /tethereal.c
parent693f9f38385c123ad9a042e4a7fb734db37ada17 (diff)
Make sure that plugin tap listeners get registered before the non-plugin tap listeners
that's because stat trees are registered as tap listeners by either gtk/stats_tree_stat.c or tap-stats_tree.c svn path=/trunk/; revision=13545
Diffstat (limited to 'tethereal.c')
-rw-r--r--tethereal.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tethereal.c b/tethereal.c
index 34e4406dea..e7b522ae51 100644
--- a/tethereal.c
+++ b/tethereal.c
@@ -699,8 +699,12 @@ main(int argc, char *argv[])
/* Register all tap listeners; we do this before we parse the arguments,
as the "-z" argument can specify a registered tap. */
- register_all_tap_listeners();
+
+ /* we register the plugin taps before the other taps because
+ stats_tree taps plugins will be registered as tap listeners
+ by stats_tree_stat.c and need to registered before that */
register_all_plugin_tap_listeners();
+ register_all_tap_listeners();
/* Now register the preferences for any non-dissector modules.
We must do that before we read the preferences as well. */