[glib] Fail in a clean way if schema name is missing
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Fail in a clean way if schema name is missing
- Date: Fri, 28 Jan 2011 01:29:49 +0000 (UTC)
commit 4a8d9b68e38c8b2d09e426eb009ca6fadff5af86
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Jan 27 20:29:22 2011 -0500
Fail in a clean way if schema name is missing
https://bugzilla.gnome.org/show_bug.cgi?id=640192
gio/gsettingsschema.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gio/gsettingsschema.c b/gio/gsettingsschema.c
index 6d028ad..fdc1779 100644
--- a/gio/gsettingsschema.c
+++ b/gio/gsettingsschema.c
@@ -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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]