PER: fix V593 warning reported by PVS-Studio

Consider reviewing the expression of the 'A = B == C' kind. The expression is calculated as following: 'A = (B == C)'.

Change-Id: I162a2d081a70cb39b326d3aa2dc4108f49962169
Reviewed-on: https://code.wireshark.org/review/8821
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
This commit is contained in:
Pascal Quantin 2015-06-07 20:47:11 +02:00
parent ae027ecd7c
commit c100e1cf52
1 changed files with 1 additions and 1 deletions

View File

@ -2565,7 +2565,7 @@ call_per_oid_callback(const char *oid, tvbuff_t *tvb, packet_info *pinfo, proto_
val_tvb = new_octet_aligned_subset(tvb, offset, actx, type_length);
if (oid == NULL ||
(len = dissector_try_string(per_oid_dissector_table, oid, val_tvb, pinfo, tree, actx) == 0))
((len = dissector_try_string(per_oid_dissector_table, oid, val_tvb, pinfo, tree, actx)) == 0))
{
proto_tree_add_expert(tree, pinfo, &ei_per_oid_not_implemented, val_tvb, 0, -1);
dissect_per_open_type(tvb, start_offset, actx, tree, hf_index, NULL);