From c9440cb8dfb33919026e73f4cc52f6235e539b69 Mon Sep 17 00:00:00 2001 From: Martin Kaiser Date: Thu, 20 Mar 2014 20:30:31 +0100 Subject: 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 --- wiretap/file_access.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wiretap') 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) { -- cgit v1.2.3