aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2019-07-29 13:42:10 +0200
committerAnders Broman <a.broman58@gmail.com>2019-07-29 15:23:06 +0000
commitfb055b1c4f2c49314313c0e2072d56998bd74701 (patch)
tree83044fd9a089bb779d86d494fe68c3075d63cf8e
parentb09f249a13846e0105dfc61c4c46a65bd71add65 (diff)
log3gpp: Fix purpose of 'init' in proto_reg_handoff_log3gpp
The purpose of 'init' in proto_reg_handoff_log3gpp() is to avoid doing multiple dissector_add_uint(), so make this variable static. Change-Id: Ie69c0b20d56102035ef44bd5c71aee87949a5191 Reviewed-on: https://code.wireshark.org/review/34118 Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org> Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
-rw-r--r--epan/dissectors/packet-log3gpp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-log3gpp.c b/epan/dissectors/packet-log3gpp.c
index e440007f32..5404c4f00b 100644
--- a/epan/dissectors/packet-log3gpp.c
+++ b/epan/dissectors/packet-log3gpp.c
@@ -690,7 +690,7 @@ dissect_log3gpp(tvbuff_t* tvb, packet_info* pinfo, proto_tree* tree, void* data
/******************************************************************************/
void proto_reg_handoff_log3gpp(void)
{
- gboolean init = FALSE;
+ static gboolean init = FALSE;
if (init == FALSE)
{