diff options
author | Ray Strode <rstrode@redhat.com> | 2013-06-03 08:13:59 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2013-06-03 08:13:59 -0400 |
commit | 018511346668e1a68fc372826df6a1b0cbf2f4dc (patch) | |
tree | 8769a55df79538dfbefa88bed0b48b097d4cf71e | |
parent | 11fe39d3cf74e7da3b9aae87d3272b37844b60f0 (diff) | |
download | gdm-018511346668e1a68fc372826df6a1b0cbf2f4dc.tar.gz |
manager: clean up error path
If a user tries to open a session that doesn't belong to him (via
gdm_manager_open_session) we post an warning to the console because
we try to access an error variable that isn't set.
This commit fixes that.
-rw-r--r-- | daemon/gdm-manager.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/daemon/gdm-manager.c b/daemon/gdm-manager.c index 6f5364e7..74c6888f 100644 --- a/daemon/gdm-manager.c +++ b/daemon/gdm-manager.c @@ -668,9 +668,6 @@ gdm_manager_handle_open_session (GdmDBusManager *manager, G_DBUS_ERROR, G_DBUS_ERROR_ACCESS_DENIED, _("User doesn't own session")); - g_prefix_error (&error, "Error while retrieving caller session id: "); - g_dbus_method_invocation_return_gerror (invocation, error); - g_error_free (error); return TRUE; } |