[nautilus] Don't crash on NULL gconf value
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [nautilus] Don't crash on NULL gconf value
- Date: Mon, 7 Sep 2009 07:45:24 +0000 (UTC)
commit bd108f3700594e5c859d89287a59733a5585e4d9
Author: Padraig O'Briain <padraig obriain sun com>
Date: Mon Sep 7 09:44:18 2009 +0200
Don't crash on NULL gconf value
This fixes bug #589520
.../nautilus-desktop-directory-file.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libnautilus-private/nautilus-desktop-directory-file.c b/libnautilus-private/nautilus-desktop-directory-file.c
index b1af844..bd2a84d 100644
--- a/libnautilus-private/nautilus-desktop-directory-file.c
+++ b/libnautilus-private/nautilus-desktop-directory-file.c
@@ -554,6 +554,9 @@ nautilus_desktop_update_metadata_from_gconf (NautilusFile *file,
key = gconf_entry_get_key (entry);
value = gconf_entry_get_value (entry);
+ if (value == NULL) {
+ continue;
+ }
key = strrchr (key, '/') + 1;
gio_key = g_strconcat ("metadata::", key, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]