use the WTAP_TYPE_AUTO define to make things clearer
Change-Id: I1dd51d1452333826c153b6bb861262a6166af3c5 Reviewed-on: https://code.wireshark.org/review/754 Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
This commit is contained in:
parent
6553435985
commit
c9440cb8df
|
@ -799,7 +799,7 @@ wtap* wtap_open_offline(const char *filename, unsigned int type, int *err, char
|
|||
}
|
||||
|
||||
/* 'type' is 1 greater than the array index */
|
||||
if (type != 0 && type <= open_info_arr->len) {
|
||||
if (type != WTAP_TYPE_AUTO && type <= open_info_arr->len) {
|
||||
int result;
|
||||
|
||||
if (file_seek(wth->fh, 0, SEEK_SET, err) == -1) {
|
||||
|
|
Loading…
Reference in New Issue