From 139bff4974d9f410b8e232eb6b7aefcfe1dcc8c2 Mon Sep 17 00:00:00 2001 From: discomfitor Date: Fri, 14 Jan 2011 06:35:03 +0000 Subject: [PATCH] unless I'm going insane, this should return here to avoid an immediate null deref with configs[i] git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@56099 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/modules/engines/gl_x11/evas_x_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/engines/gl_x11/evas_x_main.c b/src/modules/engines/gl_x11/evas_x_main.c index 6953620..95437dd 100644 --- a/src/modules/engines/gl_x11/evas_x_main.c +++ b/src/modules/engines/gl_x11/evas_x_main.c @@ -713,6 +713,7 @@ eng_best_visual_get(Evas_Engine_Info_GL_X11 *einfo) if ((!configs) || (num < 1)) { ERR("glXChooseFBConfig returned no configs"); + return NULL; } for (i = 0; i < num; i++) { -- 2.7.4