aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-homeplug.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-homeplug.c')
-rw-r--r--epan/dissectors/packet-homeplug.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/epan/dissectors/packet-homeplug.c b/epan/dissectors/packet-homeplug.c
index a775a680e0..4c54e8c218 100644
--- a/epan/dissectors/packet-homeplug.c
+++ b/epan/dissectors/packet-homeplug.c
@@ -820,16 +820,12 @@ dissect_homeplug(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree)
ptvcursor_free(cursor);
}
-static dissector_handle_t homeplug_handle;
void
proto_reg_handoff_homeplug(void)
{
- static gboolean initialised = FALSE;
+ dissector_handle_t homeplug_handle;
- if (!initialised) {
- homeplug_handle = create_dissector_handle(dissect_homeplug, proto_homeplug);
- dissector_add("ethertype", ETHERTYPE_HOMEPLUG, homeplug_handle);
- initialised = TRUE;
- }
+ homeplug_handle = create_dissector_handle(dissect_homeplug, proto_homeplug);
+ dissector_add("ethertype", ETHERTYPE_HOMEPLUG, homeplug_handle);
}