From 7b721a1c0e4db1e1090e92df2c648e9fdc4cfb7a Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sun, 21 Dec 2014 22:42:28 -0800 Subject: Squelch a compiler warning. ("Can't happen", but that requires more dataflow analysis than some compilers do.) Change-Id: I5c6acbff64ea88f9b43d5580522bc144465dc9ac Reviewed-on: https://code.wireshark.org/review/5972 Reviewed-by: Guy Harris --- epan/dissectors/packet-ptp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'epan/dissectors/packet-ptp.c') diff --git a/epan/dissectors/packet-ptp.c b/epan/dissectors/packet-ptp.c index b09c9a8c9b..37ee0ebeff 100644 --- a/epan/dissectors/packet-ptp.c +++ b/epan/dissectors/packet-ptp.c @@ -1643,7 +1643,7 @@ dissect_ptp_v1(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) /* Set up structures needed to add the protocol subtree and manage it */ proto_item *ti, *flags_ti, *time_ti, *time2_ti; - proto_tree *ptp_tree, *ptp_flags_tree, *ptp_time_tree, *ptp_time2_tree; + proto_tree *ptp_tree = NULL, *ptp_flags_tree, *ptp_time_tree, *ptp_time2_tree; /* Make entries in Protocol column and Info column on summary display */ col_set_str(pinfo->cinfo, COL_PROTOCOL, "PTPv1"); -- cgit v1.2.3