gnome-settings-daemon/0001-color-don-t-use-uninitialized-GErrors.patch
Matthias Clasen 1d7746c0e7 fix a crash
2011-08-16 13:54:16 -04:00

28 lines
885 B
Diff

From 2528fa0f2c5a6d88318498392e39d4c76669a544 Mon Sep 17 00:00:00 2001
From: Matthias Clasen <mclasen@redhat.com>
Date: Tue, 16 Aug 2011 13:50:57 -0400
Subject: [PATCH] color: don't use uninitialized GErrors
It leads to crashes...
https://bugzilla.redhat.com/show_bug.cgi?id=728903
---
plugins/color/gcm-profile-store.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/plugins/color/gcm-profile-store.c b/plugins/color/gcm-profile-store.c
index eddc7ba..45bf43d 100644
--- a/plugins/color/gcm-profile-store.c
+++ b/plugins/color/gcm-profile-store.c
@@ -430,7 +430,7 @@ gcm_profile_store_search (GcmProfileStore *profile_store)
{
gchar *path;
gboolean ret;
- GError *error;
+ GError *error = NULL;
/* get Linux per-user profiles */
path = g_build_filename (g_get_user_data_dir (), "icc", NULL);
--
1.7.6