diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2019-09-09 07:08:44 +0000 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2019-09-09 10:56:20 +0000 |
commit | 6cf3878a4fdb957fe168f010f50fe9bfa646c491 (patch) | |
tree | d0e468b04f35c82205b4713392b7089b89d59f01 /epan/dissectors/packet-kafka.c | |
parent | b66b3c63a9a16e418ebef91667cf5bb46de1081d (diff) |
Kafka: Fix Dead Store
Fix dead store (Dead assignement/Dead increment) Warning found by Clang
Change-Id: I013c1bdc943033550f497b1be0dfc7979ca49517
Reviewed-on: https://code.wireshark.org/review/34484
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-kafka.c')
-rw-r--r-- | epan/dissectors/packet-kafka.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-kafka.c b/epan/dissectors/packet-kafka.c index 1f1260be66..84c3c6838d 100644 --- a/epan/dissectors/packet-kafka.c +++ b/epan/dissectors/packet-kafka.c @@ -1076,7 +1076,7 @@ dissect_kafka_string_new(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree val = 0; } else if (val > 0) { // there is payload available, possibly with 0 octets - pi = proto_tree_add_item(tree, hf_item, tvb, offset+len, (gint)val, ENC_NA | ENC_UTF_8); + proto_tree_add_item(tree, hf_item, tvb, offset+len, (gint)val, ENC_NA | ENC_UTF_8); } else if (val == 0) { // there is empty payload (0 octets) proto_tree_add_string_format_value(tree, hf_item, tvb, offset+len, 0, NULL, "<EMPTY>"); |