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 0af8e0f..8b46ec7 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 8a73ec4..fea386e 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++;
             }