mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-23 23:59:16 +02:00
gmain: fix poll record comparison
We intend to keep the list of poll records sorted by (integer) file descriptor, but due to a typo we are actually keeping it sorted by pointer address of the GPollFD. Fix that. https://bugzilla.gnome.org/show_bug.cgi?id=11059
This commit is contained in:
parent
c476f7cd26
commit
5aba9ca837
@ -4205,7 +4205,7 @@ g_main_context_add_poll_unlocked (GMainContext *context,
|
|||||||
nextrec = context->poll_records;
|
nextrec = context->poll_records;
|
||||||
while (nextrec)
|
while (nextrec)
|
||||||
{
|
{
|
||||||
if (nextrec->fd > fd)
|
if (nextrec->fd->fd > fd->fd)
|
||||||
break;
|
break;
|
||||||
prevrec = nextrec;
|
prevrec = nextrec;
|
||||||
nextrec = nextrec->next;
|
nextrec = nextrec->next;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user