Thrift: Fix warning about unused variable.

/epan/dissectors/packet-thrift.c:1619:9: error: ‘type_pi’ may be used
uninitialized in this function [-Werror=maybe-uninitialized]
This commit is contained in:
Anders Broman 2021-09-01 13:53:55 +02:00
parent 875d607892
commit 9cf6caee62
1 changed files with 1 additions and 1 deletions

View File

@ -1530,7 +1530,7 @@ dissect_thrift_t_struct(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int
{
thrift_field_header_t field_header;
proto_tree *sub_tree = NULL;
proto_item *type_pi;
proto_item *type_pi = NULL;
gboolean enable_subtree = (ett_id != DISABLE_SUBTREE) || (hf_id != DISABLE_SUBTREE);