diff options
author | Olivier Abad <oabad@noos.fr> | 2000-03-31 21:42:24 +0000 |
---|---|---|
committer | Olivier Abad <oabad@noos.fr> | 2000-03-31 21:42:24 +0000 |
commit | 26736850671e10e9dede404b97e24fceeaf300ee (patch) | |
tree | e5f2b24c4fe2c2829daf0977fbca349aef52f6ad /file.c | |
parent | 87e3becab56b527585cf125d1f2e908aac1ef79a (diff) | |
download | wireshark-26736850671e10e9dede404b97e24fceeaf300ee.tar.gz wireshark-26736850671e10e9dede404b97e24fceeaf300ee.tar.bz2 wireshark-26736850671e10e9dede404b97e24fceeaf300ee.zip |
Add a counter : "enabled_plugins_number", to record how many plugins are
enabled. The counter is incremented in enable_plugin() and decremented
in disable_plugin().
In add_packet_to_packet_list(), we check this counter (instead of
plugin_list) to see if there is at least one enabled plugin. If this is
the case, we must build the protocol tree.
svn path=/trunk/; revision=1770
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,7 +1,7 @@ /* file.c * File I/O routines * - * $Id: file.c,v 1.173 2000/03/28 08:11:43 guy Exp $ + * $Id: file.c,v 1.174 2000/03/31 21:42:23 oabad Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -550,7 +550,7 @@ add_packet_to_packet_list(frame_data *fdata, capture_file *cf, const u_char *buf } else { #ifdef HAVE_PLUGINS - if (plugin_list) + if (enabled_plugins_number > 0) protocol_tree = proto_tree_create_root(); #endif dissect_packet(buf, fdata, protocol_tree); |