summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpuppetmaster <puppetmaster>2005-07-28 22:26:39 +0000
committerpuppetmaster <puppetmaster>2005-07-28 22:26:39 +0000
commit48e843666eb98c4119f377720f484cc544ec6e8e (patch)
tree6acb1fffadafd705ea0e90f32088fbb3c3ae42f5
parentfix for forme (diff)
downloadelock-48e843666eb98c4119f377720f484cc544ec6e8e.tar.xz
adding condition for alloc of info
-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))