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
This commit is contained in:
Ryan Lortie 2012-01-18 22:15:30 -05:00
parent d8b295abb3
commit c95e908529

View File

@ -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++)
{