[gnome-settings-daemon/gnome-3-2] color: Fix a crash if ~/.local is deleted at runtime
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/gnome-3-2] color: Fix a crash if ~/.local is deleted at runtime
- Date: Mon, 3 Oct 2011 08:53:13 +0000 (UTC)
commit fd4c0057b8e3f72b30acb6f1c82688e29b31c0c0
Author: Richard Hughes <richard hughsie com>
Date: Mon Oct 3 09:52:06 2011 +0100
color: Fix a crash if ~/.local is deleted at runtime
Resolves https://bugzilla.gnome.org/show_bug.cgi?id=660664
plugins/color/gcm-profile-store.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plugins/color/gcm-profile-store.c b/plugins/color/gcm-profile-store.c
index d325162..3dde406 100644
--- a/plugins/color/gcm-profile-store.c
+++ b/plugins/color/gcm-profile-store.c
@@ -254,6 +254,8 @@ gcm_profile_store_process_child (GcmProfileStore *profile_store,
/* check we're not in a loop */
helper = gcm_profile_store_find_directory (profile_store, path);
+ if (helper == NULL)
+ goto out;
if (helper->depth > GCM_PROFILE_STORE_MAX_RECURSION_LEVELS) {
g_warning ("recursing more than %i levels deep is insane",
GCM_PROFILE_STORE_MAX_RECURSION_LEVELS);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]