aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ptp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-12-21 22:42:28 -0800
committerGuy Harris <guy@alum.mit.edu>2014-12-22 06:42:59 +0000
commit7b721a1c0e4db1e1090e92df2c648e9fdc4cfb7a (patch)
tree1487606dafb96909707b1afd1398fb29b43ee672 /epan/dissectors/packet-ptp.c
parent998a84774bb05a7165d5c7b1637c58fadda50a00 (diff)
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 <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors/packet-ptp.c')
-rw-r--r--epan/dissectors/packet-ptp.c2
1 files changed, 1 insertions, 1 deletions
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");