summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2018-05-11 16:40:38 +1200
committerRobert Ancell <robert.ancell@canonical.com>2018-05-11 16:40:38 +1200
commit9cfe924bb7bdfbb293686f2d636f461017f7c9dc (patch)
tree4b9353d493a192d346817df265e70bda4442ea6b
parent9813401387b31f5a3c4c7dfffd225fe76c5a78aa (diff)
downloadlightdm-git-9cfe924bb7bdfbb293686f2d636f461017f7c9dc.tar.gz
Fix compile warning and unfreed GError from 733d175
-rw-r--r--src/session-child.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/session-child.c b/src/session-child.c
index 468534cf..eef51e49 100644
--- a/src/session-child.c
+++ b/src/session-child.c
@@ -765,12 +765,13 @@ session_child_run (int argc, char **argv)
privileges_drop (user_get_uid (user), user_get_gid (user));
g_autoptr(GError) error = NULL;
- gboolean result = x_authority_write (x_authority, XAUTH_WRITE_MODE_REMOVE, x_authority_filename, &error);
+ x_authority_write (x_authority, XAUTH_WRITE_MODE_REMOVE, x_authority_filename, &error);
if (drop_privileges)
privileges_reclaim ();
if (error)
g_printerr ("Error removing X authority: %s\n", error->message);
+ g_clear_error (&error);
/* Ignore this error, don't exit, continue closing the session. */
}