cosine.c: fix compilation with gcc 8
cosine.c:232:46: error: logical ‘or’ of equal expressions [-Werror=logical-op] Change-Id: Iaefc4ff232b54994c8737a95c5990c0806e7c56e Reviewed-on: https://code.wireshark.org/review/27270 Petri-Dish: Guy Harris <guy@alum.mit.edu> Tested-by: Petri Dish Buildbot Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
parent
ac1c1c3e58
commit
a863ee0c86
|
@ -229,8 +229,7 @@ static gboolean cosine_check_file_type(wtap *wth, int *err, gchar **err_info)
|
|||
}
|
||||
|
||||
reclen = strlen(buf);
|
||||
if (reclen < strlen(COSINE_HDR_MAGIC_STR1) ||
|
||||
reclen < strlen(COSINE_HDR_MAGIC_STR2)) {
|
||||
if (reclen < MIN(strlen(COSINE_HDR_MAGIC_STR1), strlen(COSINE_HDR_MAGIC_STR2))) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue