erf: Fix Dead Store (found by Clang Anlyzer)

Although the value stored to 'tagtotallength' is used in the enclosing expression, the value is never actually read from 'tagtotallength'
This commit is contained in:
Alexis La Goutte 2021-07-27 12:46:07 +00:00 committed by Wireshark GitLab Utility
parent 17f474406a
commit a3f9c6bc45
1 changed files with 1 additions and 1 deletions

View File

@ -3351,7 +3351,7 @@ static int populate_summary_info(erf_t *erf_priv, wtap *wth, union wtap_pseudo_h
state.tag_ptr += tagtotallength;
state.remaining_len -= tagtotallength;
if ((tagtotallength = erf_meta_read_tag(&tag, state.tag_ptr, state.remaining_len))) {
if (erf_meta_read_tag(&tag, state.tag_ptr, state.remaining_len)) {
/*
* Process parent section tag if present (which must be the first tag in
* the section).