diff options
author | Robert Ancell <robert.ancell@canonical.com> | 2013-09-30 17:17:47 +1300 |
---|---|---|
committer | Robert Ancell <robert.ancell@canonical.com> | 2013-09-30 17:17:47 +1300 |
commit | bd7c7cc81de04e785949fa2b7e27262883cc384e (patch) | |
tree | 7909ab4282bebebea17f5c9e279d9cd1d40fcf6b | |
parent | 8aa61395804c82a755e9e15dad9ff6d809283ea1 (diff) | |
download | lightdm-git-bd7c7cc81de04e785949fa2b7e27262883cc384e.tar.gz |
Don't fail writing X authority if reading it had an error
-rw-r--r-- | src/xauthority.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xauthority.c b/src/xauthority.c index 445ac5ba..2eb4321a 100644 --- a/src/xauthority.c +++ b/src/xauthority.c @@ -237,7 +237,7 @@ write_string (int fd, const gchar *value) gboolean xauth_write (XAuthority *auth, XAuthWriteMode mode, const gchar *filename, GError **error) { - gchar *input; + gchar *input = NULL; gsize input_length = 0, input_offset = 0; GList *link, *records = NULL; XAuthority *a; @@ -328,6 +328,7 @@ xauth_write (XAuthority *auth, XAuthWriteMode mode, const gchar *filename, GErro } errno = 0; + result = TRUE; for (link = records; link && result; link = link->next) { XAuthority *a = link->data; |