Blob Blame History Raw
From 4776f9e6b84482047d75aa9b36ac5c4db29c06a0 Mon Sep 17 00:00:00 2001
Message-Id: <4776f9e6b84482047d75aa9b36ac5c4db29c06a0.1333282746.git.jmoskovc@redhat.com>
In-Reply-To: <fc91ca4433b373e57997d400cc413b4c3de09b7c.1333282746.git.jmoskovc@redhat.com>
References: <fc91ca4433b373e57997d400cc413b4c3de09b7c.1333282746.git.jmoskovc@redhat.com>
From: Jiri Moskovcak <jmoskovc@redhat.com>
Date: Sun, 1 Apr 2012 01:04:27 +0200
Subject: [PATCH 2/5] gui: fixed crash when chowning directory using dbus call

---
 src/gui-gtk/main.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gui-gtk/main.c b/src/gui-gtk/main.c
index 02e5c48..e80d1c7 100644
--- a/src/gui-gtk/main.c
+++ b/src/gui-gtk/main.c
@@ -398,7 +398,7 @@ static gboolean on_focus_cb(
 
 static int chown_dir_over_dbus(const char *problem_dir_path)
 {
-    GError *error;
+    GError *error = NULL;
     GDBusProxy * proxy = g_dbus_proxy_new_for_bus_sync(G_BUS_TYPE_SYSTEM,
                                          G_DBUS_PROXY_FLAGS_NONE,
                                          NULL,
-- 
1.7.9.3