[gdm] manager: clean up error path
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm] manager: clean up error path
- Date: Mon, 3 Jun 2013 12:16:22 +0000 (UTC)
commit 018511346668e1a68fc372826df6a1b0cbf2f4dc
Author: Ray Strode <rstrode redhat com>
Date: Mon Jun 3 08:13:59 2013 -0400
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.
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 6f5364e..74c6888 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]