From 5407c01516d0f7aeea95a5702d08e4064d201bcc Mon Sep 17 00:00:00 2001 From: barbieri Date: Sat, 20 Jun 2009 05:55:37 +0000 Subject: [PATCH] do not segv when no pallete. spotted this bug when I disabled all converters in a config mistake :-) git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@41116 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/modules/engines/software_x11/evas_xlib_outbuf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/engines/software_x11/evas_xlib_outbuf.c b/src/modules/engines/software_x11/evas_xlib_outbuf.c index 442119d..3fb7e20 100644 --- a/src/modules/engines/software_x11/evas_xlib_outbuf.c +++ b/src/modules/engines/software_x11/evas_xlib_outbuf.c @@ -324,7 +324,8 @@ evas_software_xlib_outbuf_setup_x(int w, int h, int rot, Outbuf_Depth depth, buf->priv.x11.xlib.depth, buf->priv.mask.r, buf->priv.mask.g, - buf->priv.mask.b, buf->priv.pal->colors); + buf->priv.mask.b, + buf->priv.pal ? buf->priv.pal->colors: -1); } } evas_software_xlib_outbuf_drawable_set(buf, draw); -- 2.7.4