From 55094c9eb0fc33cf82467c2ca9ba8f6b067f6d79 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Fri, 26 Jul 2013 07:06:58 +0100 Subject: [PATCH] Set Crtc info->outputs and info->possible to NULL initially. Signed-off-by: Chris Michael --- src/lib/ecore_x/xlib/ecore_x_randr.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/ecore_x/xlib/ecore_x_randr.c b/src/lib/ecore_x/xlib/ecore_x_randr.c index 0db9ffb13e..d7b2164aaa 100644 --- a/src/lib/ecore_x/xlib/ecore_x_randr.c +++ b/src/lib/ecore_x/xlib/ecore_x_randr.c @@ -1890,6 +1890,9 @@ ecore_x_randr_crtc_info_get(Ecore_X_Window root, const Ecore_X_Randr_Crtc crtc) ret->noutput = info->noutput; ret->npossible = info->npossible; + ret->outputs = NULL; + ret->possible = NULL; + if (info->noutput > 0) { if ((ret->outputs =