[krb5-auth-dialog] clear error on return path
- From: Guido Günther <guidog src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [krb5-auth-dialog] clear error on return path
- Date: Mon, 3 Aug 2009 17:58:17 +0000 (UTC)
commit 4a84a570a4d3b0d1d91a4091a29b36ac5462125b
Author: Guido Günther <agx sigxcpu org>
Date: Wed Jul 29 10:29:12 2009 +0200
clear error on return path
src/krb5-auth-dbus.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/krb5-auth-dbus.c b/src/krb5-auth-dbus.c
index 4fd7e74..94ab18d 100644
--- a/src/krb5-auth-dbus.c
+++ b/src/krb5-auth-dbus.c
@@ -69,13 +69,14 @@ ka_dbus_connect(unsigned int* status)
guint request_name_reply;
unsigned int flags;
DBusGProxy *bus_proxy;
- GError* error = NULL;
+ GError *error = NULL;
/* Connect to the session bus so we get exit-on-disconnect semantics. */
session = dbus_g_bus_get(DBUS_BUS_SESSION, &error);
if (session == NULL) {
g_error ("couldn't connect to session bus: %s", (error) ? error->message : "(null)");
*status = 1;
+ g_clear_error (&error);
return FALSE;
}
flags = DBUS_NAME_FLAG_DO_NOT_QUEUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]