[glib] gmain: fix poll record comparison



commit 5aba9ca837205f8eddec138326430af9d2fd6b11
Author: Ryan Lortie <desrt desrt ca>
Date:   Fri Nov 28 12:43:03 2014 -0500

    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

 glib/gmain.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glib/gmain.c b/glib/gmain.c
index e2b6ca3..e20128a 100644
--- a/glib/gmain.c
+++ b/glib/gmain.c
@@ -4205,7 +4205,7 @@ g_main_context_add_poll_unlocked (GMainContext *context,
   nextrec = context->poll_records;
   while (nextrec)
     {
-      if (nextrec->fd > fd)
+      if (nextrec->fd->fd > fd->fd)
         break;
       prevrec = nextrec;
       nextrec = nextrec->next;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]