aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ieee8021ah.c
diff options
context:
space:
mode:
authorwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>2008-09-23 00:55:28 +0000
committerwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>2008-09-23 00:55:28 +0000
commit78e92e40cb8e781db891b5c30c5dc3608e6462c8 (patch)
treee9d026f205906440ff7016239d06ea54f19b9827 /epan/dissectors/packet-ieee8021ah.c
parent3ead9b3643a13aeac3f164f2b94065b1923a6b03 (diff)
Minor revision related to proto_reg_handoff ...
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26252 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-ieee8021ah.c')
-rw-r--r--epan/dissectors/packet-ieee8021ah.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/epan/dissectors/packet-ieee8021ah.c b/epan/dissectors/packet-ieee8021ah.c
index ba1f1a690d..3f4cb612d6 100644
--- a/epan/dissectors/packet-ieee8021ah.c
+++ b/epan/dissectors/packet-ieee8021ah.c
@@ -432,17 +432,15 @@ proto_reg_handoff_ieee8021ah(void)
{
static gboolean prefs_initialized = FALSE;
static dissector_handle_t ieee8021ah_handle;
- static dissector_handle_t ieee8021ad_handle;
static unsigned int old_ieee8021ah_ethertype;
if (!prefs_initialized){
+ dissector_handle_t ieee8021ad_handle;
ieee8021ah_handle = create_dissector_handle(dissect_ieee8021ah,
proto_ieee8021ah);
-
ieee8021ad_handle = create_dissector_handle(dissect_ieee8021ad,
proto_ieee8021ad);
dissector_add("ethertype", ETHERTYPE_IEEE_802_1AD, ieee8021ad_handle);
-
prefs_initialized = TRUE;
}
else {