diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2014-12-22 11:32:27 +0100 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2014-12-22 15:22:36 +0000 |
commit | 3cb816ccb7a7d17d4c61a0468cabf9b99c646845 (patch) | |
tree | 9ddc9dae56c11a5dff0470315c8995889d46e010 /epan/dissectors/packet-ptp.c | |
parent | 67cbafaa46b7d4f694efe10bd59dd761bc1fa4c4 (diff) |
PTP: Fix ptp_tree may be used uninitialized in this function [-Werror=maybe-uninitialized]
Change-Id: I0b82782deb568256dafd4c1bf163fd3e74f95545
Reviewed-on: https://code.wireshark.org/review/5974
Reviewed-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-ptp.c')
-rw-r--r-- | epan/dissectors/packet-ptp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-ptp.c b/epan/dissectors/packet-ptp.c index 37ee0ebeff..ab7fe0a0e4 100644 --- a/epan/dissectors/packet-ptp.c +++ b/epan/dissectors/packet-ptp.c @@ -2361,7 +2361,7 @@ dissect_ptp_v2(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gboolean ptp /* Set up structures needed to add the protocol subtree and manage it */ proto_item *ti = NULL, *msg_len_item = NULL, *transportspecific_ti, *flags_ti, *managementData_ti, *clockType_ti, *protocolAddress_ti; - proto_tree *ptp_tree, *ptp_transportspecific_tree, *ptp_flags_tree, *ptp_managementData_tree, + proto_tree *ptp_tree = NULL, *ptp_transportspecific_tree, *ptp_flags_tree, *ptp_managementData_tree, *ptp_clockType_tree, *ptp_protocolAddress_tree; /* Make entries in Protocol column and Info column on summary display */ |