forked from osmocom/wireshark
libpcap(wiretap): Fix unreachable-code
libpcap.c:1007:19: warning: code will never be executed [-Wunreachable-code]
This commit is contained in:
parent
0f86319543
commit
123a5f4e13
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue