aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-xtp.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-xtp.c')
-rw-r--r--epan/dissectors/packet-xtp.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/epan/dissectors/packet-xtp.c b/epan/dissectors/packet-xtp.c
index 4b15cb41aa..548de6ec45 100644
--- a/epan/dissectors/packet-xtp.c
+++ b/epan/dissectors/packet-xtp.c
@@ -111,9 +111,6 @@ static const value_string diag_val_vals[] = {
{ 0, NULL }
};
-/* Forward declaration we need below */
-void proto_reg_handoff_xtp(void);
-
/* Initialize the protocol and registered fields */
static int proto_xtp = -1;
/* common header */
@@ -1322,13 +1319,8 @@ proto_register_xtp(void)
void
proto_reg_handoff_xtp(void)
{
- static gboolean inited = FALSE;
-
- if (!inited) {
- dissector_handle_t xtp_handle;
+ dissector_handle_t xtp_handle;
- xtp_handle = new_create_dissector_handle(dissect_xtp, proto_xtp);
- dissector_add("ip.proto", IP_PROTO_XTP, xtp_handle);
- inited = TRUE;
- }
+ xtp_handle = new_create_dissector_handle(dissect_xtp, proto_xtp);
+ dissector_add("ip.proto", IP_PROTO_XTP, xtp_handle);
}