aboutsummaryrefslogtreecommitdiff
path: root/src/krb5-auth-dbus.c
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2009-09-28 20:27:07 +0200
committerGuido Günther <agx@sigxcpu.org>2009-09-28 20:27:07 +0200
commitb6cfb6e707bb3151df08fe2f521da3b323dc87a3 (patch)
tree2a8881c5611dd20b699eb16082d33c098e12dcb4 /src/krb5-auth-dbus.c
parentImported Upstream version 0.12 (diff)
downloadkrb5-auth-dialog-b6cfb6e707bb3151df08fe2f521da3b323dc87a3.tar.gz
krb5-auth-dialog-b6cfb6e707bb3151df08fe2f521da3b323dc87a3.tar.bz2
krb5-auth-dialog-b6cfb6e707bb3151df08fe2f521da3b323dc87a3.zip
Imported Upstream version 0.13
Diffstat (limited to 'src/krb5-auth-dbus.c')
-rw-r--r--src/krb5-auth-dbus.c3
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;
bgstack15