cql: fix Dead Store found by Clang Analyzer
This commit is contained in:
parent
edd0517fae
commit
0f7b431de4
|
@ -1518,7 +1518,6 @@ dissect_cql_tcp_pdu(tvbuff_t* raw_tvb, packet_info* pinfo, proto_tree* tree, voi
|
|||
proto_tree_add_item_ret_uint(cql_subtree, hf_cql_string_length, tvb, offset, 4, ENC_BIG_ENDIAN, &string_length);
|
||||
offset += 4;
|
||||
proto_tree_add_item(cql_subtree, hf_cql_auth_token, tvb, offset, string_length, ENC_UTF_8 | ENC_NA);
|
||||
offset += string_length;
|
||||
break;
|
||||
|
||||
|
||||
|
@ -1529,7 +1528,6 @@ dissect_cql_tcp_pdu(tvbuff_t* raw_tvb, packet_info* pinfo, proto_tree* tree, voi
|
|||
offset += 4;
|
||||
if (string_length > 0) {
|
||||
proto_tree_add_item(cql_subtree, hf_cql_auth_token, tvb, offset, string_length, ENC_UTF_8 | ENC_NA);
|
||||
offset += string_length;
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in New Issue