From e57b37137d3b609dfad486d443b038453512e792 Mon Sep 17 00:00:00 2001 From: Roman Koshelev Date: Sat, 11 Jan 2020 18:39:42 +0300 Subject: Compilation fixes when CMAKE_BUILD_TYPE = MinSizeRel (-Os flag). Compiler - gcc 8.3.0 These are mostly errors 'may be used uninitialized in this function' Change-Id: I6a8f7172c99024fd449570937b030e37c0ea5c3d Reviewed-on: https://code.wireshark.org/review/35746 Reviewed-by: Pascal Quantin --- epan/dissectors/packet-cdp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'epan/dissectors/packet-cdp.c') diff --git a/epan/dissectors/packet-cdp.c b/epan/dissectors/packet-cdp.c index 3e7f115221..14dcead36e 100644 --- a/epan/dissectors/packet-cdp.c +++ b/epan/dissectors/packet-cdp.c @@ -1049,7 +1049,7 @@ dissect_address_tlv(tvbuff_t *tvb, int offset, int length, proto_tree *tree) proto_tree *address_tree; guint8 protocol_type; guint8 protocol_length; - int nlpid; + int nlpid = 0; guint16 address_length; guint16 etypeid = 0; int hf_addr = -1; -- cgit v1.2.3