summaryrefslogtreecommitdiff
path: root/community/lightdm/lightdm-corrupt-x-authority.patch
blob: f994b394c1126e8149a0e2345e6cebbe52732b09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
=== modified file 'src/xauthority.c'
--- src/xauthority.c	2013-09-10 23:14:12 +0000
+++ src/xauthority.c	2013-09-30 02:59:01 +0000
@@ -237,7 +237,7 @@
 gboolean
 x_authority_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 @@
     }
 
     errno = 0;
+    result = TRUE;
     for (link = records; link && result; link = link->next)
     {
         XAuthority *a = link->data;