diff options
Diffstat (limited to 'src/session-child.c')
-rw-r--r-- | src/session-child.c | 3 |
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. */ } |