protobuf: Fix Clang Warning Analyzer

line 764: Value stored to 'subtree' is never read
This commit is contained in:
Alexis La Goutte 2023-01-17 09:43:17 +00:00
parent b0487565ad
commit a65f332abd
1 changed files with 1 additions and 2 deletions

View File

@ -760,8 +760,7 @@ protobuf_dissect_field_value(proto_tree *value_tree, tvbuff_t *tvb, guint offset
proto_item_append_text(ti_field, "= %s", buf);
}
} else if (hf_id_ptr) {
ti = proto_tree_add_bytes_format_value(pbf_tree, *hf_id_ptr, tvb, offset, length, NULL, "(%u bytes)", length);
subtree = proto_item_add_subtree(ti, ett_protobuf_message);
proto_tree_add_bytes_format_value(pbf_tree, *hf_id_ptr, tvb, offset, length, NULL, "(%u bytes)", length);
} else {
/* we don't continue with unknown mssage type */
}