(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-per.c) |
| |
| 2040 | | | guint32 dissect_per_bit_string_containing_pdu(tvbuff_t *tvb, guint32 offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index, int min_len, int max_len, gboolean has_extension, dissector_t type_cb) |
| 2041 | | | { |
| 2042 | | | tvbuff_t *val_tvb = NULL; |
| 2043 | | | proto_tree *subtree = tree; |
Unused Value
The value assigned to subtree is never subsequently used on any execution path. |
|
| 2044 | | | |
| 2045 | | | offset = dissect_per_bit_string(tvb, offset, actx, tree, hf_index, min_len, max_len, has_extension, &val_tvb); |
| 2046 | | | |
| 2047 | | | if (type_cb && val_tvb) { |
| 2048 | | | subtree = proto_item_add_subtree(actx->created_item, ett_per_containing); |
| 2049 | | | type_cb(val_tvb, actx->pinfo, subtree); |
| 2050 | | | } |
| 2051 | | | |
| 2052 | | | return offset; |
| 2053 | | | } |
| |