summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ecore/src/lib/ecore_x/ecore_x_screensaver.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ecore/src/lib/ecore_x/ecore_x_screensaver.c b/ecore/src/lib/ecore_x/ecore_x_screensaver.c
index ddabb05..3fe987e 100644
--- a/ecore/src/lib/ecore_x/ecore_x_screensaver.c
+++ b/ecore/src/lib/ecore_x/ecore_x_screensaver.c
@@ -17,6 +17,9 @@ ecore_x_screensaver_get_alloc_info(void)
info = XScreenSaverAllocInfo ();
+ if (!info)
+ return NULL;
+
root = DefaultRootWindow(_ecore_x_disp);
if (!XScreenSaverQueryInfo(_ecore_x_disp, root, info))