libpcap(wiretap): Fix unreachable-code

libpcap.c:1007:19: warning: code will never be executed [-Wunreachable-code]
This commit is contained in:
Alexis La Goutte 2022-01-18 17:01:08 +00:00 committed by A Wireshark GitLab Utility
parent 0f86319543
commit 123a5f4e13
1 changed files with 1 additions and 1 deletions

View File

@ -1003,8 +1003,8 @@ static int libpcap_read_header(wtap *wth, FILE_T fh, int *err, gchar **err_info,
break;
default:
ws_assert_not_reached();
bytes_to_read = 0;
ws_assert_not_reached();
}
if (!wtap_read_bytes_or_eof(fh, hdr, bytes_to_read, err, err_info))
return FALSE;