(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-per.c) |
| |
| 2055 | | | guint32 dissect_per_bit_string_containing_pdu_new(tvbuff_t *tvb, guint32 offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index, int min_len, int max_len, gboolean has_extension, new_dissector_t type_cb) |
| 2056 | | | { |
| 2057 | | | tvbuff_t *val_tvb = NULL; |
| 2058 | | | proto_tree *subtree = tree; |
Unused Value
The value assigned to subtree is never subsequently used on any execution path. |
|
| 2059 | | | |
| 2060 | | | offset = dissect_per_bit_string(tvb, offset, actx, tree, hf_index, min_len, max_len, has_extension, &val_tvb); |
| 2061 | | | |
| 2062 | | | if (type_cb && val_tvb) { |
| 2063 | | | subtree = proto_item_add_subtree(actx->created_item, ett_per_containing); |
| 2064 | | | type_cb(val_tvb, actx->pinfo, subtree); |
| 2065 | | | } |
| 2066 | | | |
| 2067 | | | return offset; |
| 2068 | | | } |
| |