[glib] GSettingsSchema: ignore empty schema caches



commit c95e9085296a1c76124896bf6bedd772cdef4c5e
Author: Ryan Lortie <desrt desrt ca>
Date:   Wed Jan 18 22:15:30 2012 -0500

    GSettingsSchema: ignore empty schema caches
    
    glib-compile-schemas used to generate these.  They're harmless and they
    mean that no schemas are installed in a particular directory, so just
    ignore them.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=656301

 gio/gsettingsschema.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gio/gsettingsschema.c b/gio/gsettingsschema.c
index 1de7177..bdb9bab 100644
--- a/gio/gsettingsschema.c
+++ b/gio/gsettingsschema.c
@@ -478,7 +478,9 @@ ensure_schema_lists (void)
         {
           list = gvdb_table_list (source->table, "");
 
-          g_assert (list != NULL);
+          /* empty schema cache file? */
+          if (list == NULL)
+            continue;
 
           for (i = 0; list[i]; i++)
             {



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