merge(wiretap): fix Dead Store found by Clang Analyzer

This commit is contained in:
Alexis La Goutte 2023-11-01 18:34:55 +01:00
parent 00be42a1f2
commit 6081bf1535
1 changed files with 0 additions and 1 deletions

View File

@ -518,7 +518,6 @@ create_shb_header(const merge_in_file_t *in_files, const guint in_file_count,
shb_data = (wtapng_section_mandatory_t*)wtap_block_get_mandatory_data(shb_hdr);
shb_data->section_length = -1;
/* TODO: handle comments from each file being merged */
opt_len = comment_gstr->len;
/* XXX: 65535 is the maximum size for an option (hence comment) in pcapng.
* Truncate it? Let wiretap/pcapng.c decide what to do? (Currently it
* writes nothing without reporting an error.) What if we support other