summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2016-06-09 12:31:48 +1200
committerRobert Ancell <robert.ancell@canonical.com>2016-06-09 12:31:48 +1200
commitfcab2072c0dfd5503950f55b001851af32d06398 (patch)
treea734aae8bd5f1207b563eed3782c89094ed03dae
parent54049a98a5ac342d4d2a20e73c32fd11bf5dc9ba (diff)
downloadlightdm-git-fcab2072c0dfd5503950f55b001851af32d06398.tar.gz
Be even more careful about closing uninitialized memory.lightdm-1-16
-rw-r--r--src/unity-system-compositor.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/unity-system-compositor.c b/src/unity-system-compositor.c
index df4f9e07..cc3b4851 100644
--- a/src/unity-system-compositor.c
+++ b/src/unity-system-compositor.c
@@ -478,6 +478,10 @@ unity_system_compositor_init (UnitySystemCompositor *compositor)
compositor->priv->command = g_strdup ("unity-system-compositor");
compositor->priv->socket = g_strdup ("/run/mir_socket");
compositor->priv->timeout = -1;
+ compositor->priv->to_compositor_pipe[0] = -1;
+ compositor->priv->to_compositor_pipe[1] = -1;
+ compositor->priv->from_compositor_pipe[0] = -1;
+ compositor->priv->from_compositor_pipe[1] = -1;
}
static void