aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-cdp.c
diff options
context:
space:
mode:
authorRoman Koshelev <roman.koshelev@bk.ru>2020-01-11 18:39:42 +0300
committerPascal Quantin <pascal@wireshark.org>2020-01-11 20:46:52 +0000
commite57b37137d3b609dfad486d443b038453512e792 (patch)
tree59c87eb03422fcbadec515f6928da272f8390f81 /epan/dissectors/packet-cdp.c
parentdbfb204f487097032d83de318c26cacd185a9d4e (diff)
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 <pascal@wireshark.org>
Diffstat (limited to 'epan/dissectors/packet-cdp.c')
-rw-r--r--epan/dissectors/packet-cdp.c2
1 files changed, 1 insertions, 1 deletions
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;