[dconf] don't crash if get_locked() is called on "/"
- From: Ryan Lortie <ryanl src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [dconf] don't crash if get_locked() is called on "/"
- Date: Fri, 18 Sep 2009 02:17:32 +0000 (UTC)
commit 431893838eebc24bb80eb3a2a6a1a706d9a499f1
Author: Ryan Lortie <desrt desrt ca>
Date: Thu Sep 17 22:10:07 2009 -0400
don't crash if get_locked() is called on "/"
dconf/dconf-core.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/dconf/dconf-core.c b/dconf/dconf-core.c
index eadc12c..fea59a5 100644
--- a/dconf/dconf-core.c
+++ b/dconf/dconf-core.c
@@ -253,7 +253,7 @@ dconf_get_locked (const gchar *path)
DConfMount *mount;
mount = dconf_demux_path (&path, TRUE, NULL);
- if (mount->n_dbs)
+ if (mount && mount->n_dbs)
locked = dconf_reader_get_locked (mount->dbs[0]->reader, path);
return locked;
@@ -284,7 +284,7 @@ dconf_get_writable (const gchar *path)
DConfMount *mount;
mount = dconf_demux_path (&path, TRUE, NULL);
- if (mount)
+ if (mount)
{
gint i;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]