diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2017-02-19 19:04:54 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2017-02-21 05:45:25 +0000 |
commit | c5ce5a835a1447f33fccf7e2719541a8edf78ff0 (patch) | |
tree | 68e8e5cb3e04be8522551ab85918e08510d50041 /epan/dissectors/packet-couchbase.c | |
parent | ed8b549e1c9344799789a4cd0f3b64c147303ca5 (diff) |
couchbase: Fix Dead Store (Dead assignement/Dead increment) Warning found by Clang
Change-Id: I9f5f91925607582f40855ca1a08875e83d62f4eb
Reviewed-on: https://code.wireshark.org/review/20205
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-couchbase.c')
-rw-r--r-- | epan/dissectors/packet-couchbase.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/epan/dissectors/packet-couchbase.c b/epan/dissectors/packet-couchbase.c index f85dc21341..8c90a923ba 100644 --- a/epan/dissectors/packet-couchbase.c +++ b/epan/dissectors/packet-couchbase.c @@ -735,7 +735,7 @@ static void dissect_dcp_xattrs(tvbuff_t *tvb, proto_tree *tree, proto_tree *xattr_tree, *pair_tree; proto_item *ti; - ti = proto_tree_add_item_ret_uint(tree, hf_xattr_length, tvb, offset, 4, ENC_BIG_ENDIAN, &xattr_size); + proto_tree_add_item_ret_uint(tree, hf_xattr_length, tvb, offset, 4, ENC_BIG_ENDIAN, &xattr_size); value_len = value_len - (xattr_size + 4); offset += 4; @@ -773,7 +773,6 @@ static void dissect_dcp_xattrs(tvbuff_t *tvb, proto_tree *tree, //The regular value proto_tree_add_item(tree, hf_value, tvb, offset, value_len, ENC_ASCII | ENC_NA); - offset += value_len; } /* Dissects the required extras for subdoc single-path packets */ |