Fail in a clean way if schema name is missing

https://bugzilla.gnome.org/show_bug.cgi?id=640192
This commit is contained in:
Matthias Clasen 2011-01-27 20:29:22 -05:00
parent d8ca640422
commit 4a8d9b68e3

View File

@ -267,6 +267,8 @@ g_settings_schema_new (const gchar *name)
GvdbTable *table = NULL;
GSList *source;
g_return_val_if_fail (name != NULL, NULL);
initialise_schema_sources ();
for (source = schema_sources; source; source = source->next)