path: root/plugins
diff options
authorMichael Mann <mmann78@netscape.net>2017-09-07 22:12:46 -0400
committerStig Bjørlykke <stig@bjorlykke.org>2017-09-08 09:16:20 +0000
commit935c055c18c8e33021c4062d22d4b87fe5577662 (patch)
tree080a3707fc0b3b00b08535a1f3adc765f761ff29 /plugins
parent6a67ba5677b28d8ce4e8b775ee93573297784e0a (diff)
DOCSIS: Fix compiler warning on macOS.
Previous functionality presumed cat = 0, so initialize cat to it. Change-Id: Ic0fdccc8222dfb435178416911d35bac105c6c03 Reviewed-on: https://code.wireshark.org/review/23434 Reviewed-by: Michael Mann <mmann78@netscape.net> Petri-Dish: Michael Mann <mmann78@netscape.net> Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'plugins')
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/docsis/packet-macmgmt.c b/plugins/docsis/packet-macmgmt.c
index 363b29f..7a3db51 100644
--- a/plugins/docsis/packet-macmgmt.c
+++ b/plugins/docsis/packet-macmgmt.c
@@ -2725,7 +2725,7 @@ dissect_ucd (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* data
static int
dissect_any_map (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, guint8 version, void* data _U_)
- guint32 i, numie, upchid, ucd_count, cat;
+ guint32 i, numie, upchid, ucd_count, cat = 0;
int pos;
proto_item *it;
proto_tree *map_tree;