mirror of
git://sourceware.org/git/glibc.git
synced 2025-04-12 14:21:18 +08:00
elf: Fix incorrect comparison in sort_priorities_by_name
Reported-By: Stefan Liebler <stli@linux.ibm.com>
This commit is contained in:
parent
f88242af19
commit
0d4ed9d40e
@ -153,7 +153,7 @@ sort_priorities_by_name (void)
|
||||
else
|
||||
to_compare = previous->name_length;
|
||||
int cmp = memcmp (current->name, previous->name, to_compare);
|
||||
if (cmp >= 0
|
||||
if (cmp > 0
|
||||
|| (cmp == 0 && current->name_length >= previous->name_length))
|
||||
break;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user