forked from osmocom/wireshark
tfshark: fix this ‘if’ clause does not guard... [-Wmisleading-indentation]
Change-Id: If66223021d074e6cb3c7bde2af7cca9c72acb8c6 Reviewed-on: https://code.wireshark.org/review/20507 Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
parent
0501699a4e
commit
a8b6284ed1
18
tfshark.c
18
tfshark.c
|
@ -1493,15 +1493,15 @@ load_cap_file(capture_file *cf, int max_packet_count, gint64 max_byte_count)
|
|||
raw_data, tap_flags))
|
||||
return 2;
|
||||
|
||||
/* Stop reading if we have the maximum number of packets;
|
||||
* When the -c option has not been used, max_packet_count
|
||||
* starts at 0, which practically means, never stop reading.
|
||||
* (unless we roll over max_packet_count ?)
|
||||
*/
|
||||
if ( (--max_packet_count == 0) || (max_byte_count != 0 && data_offset >= max_byte_count)) {
|
||||
err = 0; /* This is not an error */
|
||||
break;
|
||||
}
|
||||
/* Stop reading if we have the maximum number of packets;
|
||||
* When the -c option has not been used, max_packet_count
|
||||
* starts at 0, which practically means, never stop reading.
|
||||
* (unless we roll over max_packet_count ?)
|
||||
*/
|
||||
if ( (--max_packet_count == 0) || (max_byte_count != 0 && data_offset >= max_byte_count)) {
|
||||
err = 0; /* This is not an error */
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (edt) {
|
||||
|
|
Loading…
Reference in New Issue