From 4e73ff11213f31929dd244bb9b2c8b716bcb44e0 Mon Sep 17 00:00:00 2001 From: discomfitor Date: Sat, 10 Sep 2011 20:39:24 +0000 Subject: [PATCH] null check for color_class_list git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@63319 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/edje_util.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/edje_util.c b/src/lib/edje_util.c index 67f5eb6..26e2953 100644 --- a/src/lib/edje_util.c +++ b/src/lib/edje_util.c @@ -518,6 +518,8 @@ edje_color_class_list(void) { Edje_List_Foreach_Data fdata; + if (!color_class) return NULL; + memset(&fdata, 0, sizeof(Edje_List_Foreach_Data)); eina_hash_foreach(_edje_color_class_member_hash, _edje_color_class_list_foreach, &fdata); -- 2.7.4