diff options
-rw-r--r-- | wiretap/file_access.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wiretap/file_access.c b/wiretap/file_access.c index bf25186c15..f58d037a41 100644 --- a/wiretap/file_access.c +++ b/wiretap/file_access.c @@ -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) { |