[system-tools-backends-clone] Fix nulling GError before use



commit 00d6fafc4ee7788e103244bc8159e82373b22b9e
Author: Milan Bouchet-Valat <nalimilan club fr>
Date:   Sat Mar 13 10:46:42 2010 +0100

    Fix nulling GError before use
    
    This was causing a crash in some cases of Authentication failure. Since the error wasn't null, it wasn't filled, and we were passing to dbus_message_new_error() the invalid error->message string, via return_error().

 dispatcher/dispatcher.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/dispatcher/dispatcher.c b/dispatcher/dispatcher.c
index 2bac840..89f094e 100644
--- a/dispatcher/dispatcher.c
+++ b/dispatcher/dispatcher.c
@@ -334,7 +334,7 @@ check_polkit_auth (StbDispatcher *dispatcher,
   StbDispatcherPrivate *priv;
   PolkitSubject *subject;
   PolkitAuthorizationResult *result;
-  GError *error;
+  GError *error = NULL;
   gchar **path;
   gchar *action_id;
   gboolean retval;



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