summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2013-09-30 15:59:01 +1300
committerRobert Ancell <robert.ancell@canonical.com>2013-09-30 15:59:01 +1300
commitc8a904bd76dcbc4968def59bccc7e2d4222394f2 (patch)
tree873334b7e5fa1e065cdb41a7bf1e3a1ae1e75902
parent3b47db35e9db7e34bd2c84c69e5d099acd92f2d2 (diff)
downloadlightdm-git-c8a904bd76dcbc4968def59bccc7e2d4222394f2.tar.gz
Fix free of uninitialized if writing X authority in mode XAUTH_WRITE_MODE_SET (not used in current code)
-rw-r--r--src/x-authority.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/x-authority.c b/src/x-authority.c
index f6cbdfbc..9f276204 100644
--- a/src/x-authority.c
+++ b/src/x-authority.c
@@ -237,7 +237,7 @@ write_string (int fd, const gchar *value)
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;