[gnome-settings-daemon] color: don't use uninitialized GErrors



commit 2528fa0f2c5a6d88318498392e39d4c76669a544
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Aug 16 13:50:57 2011 -0400

    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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]