diff options
author | Bill Meier <wmeier@newsguy.com> | 2012-07-24 22:51:15 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2012-07-24 22:51:15 +0000 |
commit | 3ef558ba7c898ac753514c42fe11275075bf2d3a (patch) | |
tree | edaa3742186f078347cdf988176b063d545f996d /epan | |
parent | b342ac680d452b9743726484b4bbf0e04750c51a (diff) |
(Minor) Localize a static variable;
svn path=/trunk/; revision=43973
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-bfcp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/dissectors/packet-bfcp.c b/epan/dissectors/packet-bfcp.c index 16886ec0c0..7a6d7ce25c 100644 --- a/epan/dissectors/packet-bfcp.c +++ b/epan/dissectors/packet-bfcp.c @@ -37,7 +37,6 @@ /* Initialize protocol and registered fields */ static int proto_bfcp = -1; static gboolean bfcp_enable_heuristic_dissection = FALSE; -static dissector_handle_t bfcp_handle; static int hf_bfcp_transaction_initiator = -1; @@ -344,6 +343,8 @@ void proto_reg_handoff_bfcp(void) */ if (!prefs_initialized) { + dissector_handle_t bfcp_handle; + heur_dissector_add("tcp", dissect_bfcp, proto_bfcp); heur_dissector_add("udp", dissect_bfcp, proto_bfcp); bfcp_handle = new_create_dissector_handle(dissect_bfcp, proto_bfcp); |