[glib] Maintain the struct order when initializing



commit 99ff9bb5e0ef261e39cb3c67a2d212f6bbeb99e4
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Thu Oct 8 12:32:58 2015 +0100

    Maintain the struct order when initializing
    
    Otherwise it'll break every GLIB_PRIVATE_CALL user.

 glib/glib-private.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/glib/glib-private.c b/glib/glib-private.c
index dd04e58..3dbf744 100644
--- a/glib/glib-private.c
+++ b/glib/glib-private.c
@@ -33,8 +33,6 @@ GLibPrivateVTable *
 glib__private__ (void)
 {
   static GLibPrivateVTable table = {
-    glib_init,
-
     g_wakeup_new,
     g_wakeup_free,
     g_wakeup_get_pollfd,
@@ -47,7 +45,9 @@ glib__private__ (void)
     g_main_context_new_with_next_id,
 
     g_dir_open_with_errno,
-    g_dir_new_from_dirp
+    g_dir_new_from_dirp,
+
+    glib_init,
   };
 
   return &table;


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