From 935c055c18c8e33021c4062d22d4b87fe5577662 Mon Sep 17 00:00:00 2001 From: Michael Mann Date: Thu, 7 Sep 2017 22:12:46 -0400 Subject: DOCSIS: Fix compiler warning on macOS. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Petri-Dish: Michael Mann Reviewed-by: Stig Bjørlykke --- plugins/docsis/packet-macmgmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/docsis/packet-macmgmt.c b/plugins/docsis/packet-macmgmt.c index 363b29f0f7..7a3db517ca 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; -- cgit v1.2.3