--- glib-2.28.7/gio/gdesktopappinfo.c.orig	2011-05-21 04:30:15.000000000 +0100
+++ glib-2.28.7/gio/gdesktopappinfo.c	2011-06-03 22:26:53.000000000 +0100
@@ -1515,7 +1515,7 @@ update_mimeapps_list (const char  *deskt
            */
           if (!explicit_default)
             {
-              system_list = get_all_desktop_entries_for_mime_type (content_type, (const char **) list, FALSE, NULL);
+              system_list = get_all_desktop_entries_for_mime_type (content_type, NULL, FALSE, NULL);
 
               if (system_list != NULL)
                 {
