netscreen.c: fix compilation with gcc 8
netscreen.c:135:49: error: logical ‘or’ of equal expressions [-Werror=logical-op] Change-Id: I19627178f674920030007433d7b9d0c9e3481816 Reviewed-on: https://code.wireshark.org/review/27272 Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
parent
cf4d7ad946
commit
131eb5593b
|
@ -132,8 +132,7 @@ static gboolean netscreen_check_file_type(wtap *wth, int *err, gchar **err_info)
|
|||
}
|
||||
|
||||
reclen = (guint) strlen(buf);
|
||||
if (reclen < strlen(NETSCREEN_HDR_MAGIC_STR1) ||
|
||||
reclen < strlen(NETSCREEN_HDR_MAGIC_STR2)) {
|
||||
if (reclen < MIN(strlen(NETSCREEN_HDR_MAGIC_STR1), strlen(NETSCREEN_HDR_MAGIC_STR2))) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue