(Minor) Localize a static variable;

svn path=/trunk/; revision=43973
This commit is contained in:
Bill Meier 2012-07-24 22:51:15 +00:00
parent b342ac680d
commit 3ef558ba7c
1 changed files with 2 additions and 1 deletions

View File

@ -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);