Merge pull request #11142 from schellingb/explore_fix_pointless_comparison

Explore: Fix pointless comparison of unsigned value to zero
This commit is contained in:
Autechre 2020-08-03 21:33:09 +02:00 committed by GitHub
commit 77c2aa0150
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1085,7 +1085,7 @@ unsigned menu_displaylist_explore(file_list_t *list)
tmplen = strlcpy(tmp,
msg_hash_to_str(explore_by_info[cat].by_enum), sizeof(tmp));
if (is_top && tmplen >= 0 && tmplen < sizeof(tmp) - 5)
if (is_top && tmplen < sizeof(tmp) - 5)
{
if (explore_by_info[cat].is_numeric)
{