diff options
author | João Valverde <joao.valverde@tecnico.ulisboa.pt> | 2016-02-24 21:52:52 +0000 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2016-02-25 07:02:35 +0000 |
commit | 143f4cd4fee56e6f5b825fee447e9feb687e52d7 (patch) | |
tree | dd8f63da42f302ca485ae860c6cd751e8ffff695 /epan | |
parent | bc9c6c6728c9247f91f9dd456a233f0ac434a56d (diff) |
Fix build with CFLAGS="-g -Og" [-Werror=maybe-uninitialized]
packet-flexray.c: In function ‘dissect_flexray’:
packet-flexray.c:245:6: error: ‘flexray_frame_tree’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
expert_add_info(pinfo, flexray_frame_tree, &ei_flexray_frame_payload);
^
cc1: all warnings being treated as errors
Change-Id: Iadcae49e7d958823ae7066906892f6c1ae85169b
Reviewed-on: https://code.wireshark.org/review/14124
Reviewed-by: Michael Mann <mmann78@netscape.net>
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-flexray.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/dissectors/packet-flexray.c b/epan/dissectors/packet-flexray.c index e140e43433..b43c12cb11 100644 --- a/epan/dissectors/packet-flexray.c +++ b/epan/dissectors/packet-flexray.c @@ -130,7 +130,8 @@ static int dissect_flexray(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_) { proto_item *ti; - proto_tree *flexray_tree, *type_info_tree, *error_flags_tree, *flexray_frame_tree; + proto_tree *flexray_tree, *type_info_tree, *error_flags_tree; + proto_tree *flexray_frame_tree = NULL; tvbuff_t* next_tvb; gint frame_length; gint flexray_frame_length; |