diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2023-03-01 09:45:10 +0000 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2023-03-01 09:45:10 +0000 |
commit | 1236c07a03dd394cc4aeb4dd687522c80a40e79e (patch) | |
tree | 6bd8f2488da4f20e0a827f54de5c3c5ac58f8de7 /epan/dissectors | |
parent | e51fea444a516ac9b91efe78c85ae897d86de67b (diff) |
file-pcapng-darwin: fix Dead Store found by Clang Analyzer
Diffstat (limited to 'epan/dissectors')
-rw-r--r-- | epan/dissectors/file-pcapng-darwin.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/epan/dissectors/file-pcapng-darwin.c b/epan/dissectors/file-pcapng-darwin.c index e3e0963caf..7e1f570d77 100644 --- a/epan/dissectors/file-pcapng-darwin.c +++ b/epan/dissectors/file-pcapng-darwin.c @@ -156,7 +156,6 @@ void dissect_darwin_process_info_option(proto_tree *option_tree, proto_item *opt case 4: /* Darwin Process UUID */ proto_tree_add_item(option_tree, hf_pcapng_option_darwin_process_uuid, tvb, offset, option_length, ENC_BIG_ENDIAN); tvb_get_guid(tvb, offset, &uuid, ENC_BIG_ENDIAN); - offset += option_length; proto_item_append_text(option_item, " = %s", guid_to_str(pinfo->pool, &uuid)); @@ -164,7 +163,6 @@ void dissect_darwin_process_info_option(proto_tree *option_tree, proto_item *opt break; default: proto_tree_add_item(option_tree, unknown_option_hf, tvb, offset, option_length, ENC_NA); - offset += option_length; break; } } |