Don't g_list_prepend one list to another. Pointed out by Jan Arne Petersen
authorMatthias Clasen <matthiasc@src.gnome.org>
Mon, 30 Jun 2008 02:44:52 +0000 (02:44 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Mon, 30 Jun 2008 02:44:52 +0000 (02:44 +0000)
        * giomodule.c (_g_io_modules_ensure_loaded): Don't g_list_prepend
        one list to another. Pointed out by Jan Arne Petersen

svn path=/trunk/; revision=7103

gio/ChangeLog
gio/giomodule.c

index 0af8e0f9a015fb46a959cb5a1eca83b8c929ccff..8b46ec7b670c26bf2b5d21d0a5f54805885ee7ba 100644 (file)
@@ -1,3 +1,10 @@
+2008-06-29  Matthias Clasen  <mclasen@redhat.com>
+
+       Bug 540802 – g_list_prepend doesn't concat lists
+
+       * giomodule.c (_g_io_modules_ensure_loaded): Don't g_list_prepend
+       one list to another. Pointed out by Jan Arne Petersen
+
 2008-06-28  Michael Natterer  <mitch@imendio.com>
 
        * gfileicon.c: remove semicolons from G_IMPLEMENT_INTERFACE().
index 8a73ec42848c996d2a6d5869fe5423fcadd4be82..fea386ec3127ca85dc97f11db1ce6e6557538493 100644 (file)
@@ -341,7 +341,7 @@ _g_io_modules_ensure_loaded (void)
     
           while (paths[i] != NULL)
             { 
-              modules = g_list_prepend (modules, g_io_modules_load_all_in_directory (paths[i]));
+              modules = g_list_concat (modules, g_io_modules_load_all_in_directory (paths[i]));
               i++;
             }