forked from osmocom/wireshark
ECP: fix V562 warning reported by PVS-Studio
It's odd to compare 0 or 1 with a value of 1: ((entries > 1)) == 1. Change-Id: I6261389dddbbd7e60e98b8c351150d491f9cbddb Reviewed-on: https://code.wireshark.org/review/8810 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
This commit is contained in:
parent
83351a9996
commit
cefe9d3c26
|
@ -165,7 +165,7 @@ dissect_vdp_fi_macvid(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, g
|
|||
entries = tvb_get_ntohs(tvb, offset);
|
||||
|
||||
ecp_vdp_tlv_fi_subtree = proto_tree_add_subtree_format(tree, tvb, tempOffset, 2, ett_ecp, NULL,
|
||||
"%i MAC/VID pair%s", entries, plurality((entries > 1), "s", ""));
|
||||
"%i MAC/VID pair%s", entries, plurality(entries, "", "s"));
|
||||
|
||||
tempOffset += 2;
|
||||
|
||||
|
|
Loading…
Reference in New Issue