aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap
diff options
context:
space:
mode:
authorMartin Kaiser <wireshark@kaiser.cx>2014-03-20 20:30:31 +0100
committerMartin Kaiser <wireshark@kaiser.cx>2014-03-20 19:32:28 +0000
commitc9440cb8dfb33919026e73f4cc52f6235e539b69 (patch)
tree465dfaa57ad3ef3b2ffad6126c87873628c4b1d4 /wiretap
parent6553435985ab851149e450d524a87d194e7adb5b (diff)
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>
Diffstat (limited to 'wiretap')
-rw-r--r--wiretap/file_access.c2
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) {