From c4d02f274673e98e9de0066e2bf3bb10268e742f Mon Sep 17 00:00:00 2001 From: hermet Date: Mon, 14 Feb 2011 13:59:36 +0000 Subject: [PATCH] evas/engines - fixed invalid variable usage. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@57017 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/engines/common/evas_convert_colorspace.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/engines/common/evas_convert_colorspace.c b/src/lib/engines/common/evas_convert_colorspace.c index 2886133..21a5f59 100644 --- a/src/lib/engines/common/evas_convert_colorspace.c +++ b/src/lib/engines/common/evas_convert_colorspace.c @@ -55,6 +55,9 @@ evas_common_convert_argb8888_to_a8(void *data, int w, int h, int stride, Eina_Bo src = data; end = src + (stride * h); ret = malloc(w * h); + if(!ret) return NULL; + + dst = ret; if (!has_alpha) { -- 2.7.4