[glib/new-gsettings] Add assertion in the memory backend
- From: Vincent Untz <vuntz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/new-gsettings] Add assertion in the memory backend
- Date: Wed, 14 Apr 2010 22:11:45 +0000 (UTC)
commit 4542b00660e3ab21b26fa4a338b2425884b64535
Author: Vincent Untz <vuntz gnome org>
Date: Wed Apr 14 18:11:05 2010 -0400
Add assertion in the memory backend
gio/gmemorysettingsbackend.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gio/gmemorysettingsbackend.c b/gio/gmemorysettingsbackend.c
index 245d235..5c48ff0 100644
--- a/gio/gmemorysettingsbackend.c
+++ b/gio/gmemorysettingsbackend.c
@@ -53,6 +53,7 @@ g_memory_settings_backend_write_one (const gchar *key,
g_strdup (key), g_variant_ref (value));
slash = strrchr (key, '/');
+ g_assert (slash != NULL);
base_key = (slash + 1);
path = g_strndup (key, slash - key);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]