From ff91767e87440decc5948ac7f4899e4b21132b62 Mon Sep 17 00:00:00 2001 From: jaehwan Date: Mon, 14 Nov 2011 12:19:09 +0000 Subject: [PATCH] Value stored to 'pc' is never read and 'el' must not be null. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@65166 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/bin/edje_cc_handlers.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/bin/edje_cc_handlers.c b/src/bin/edje_cc_handlers.c index a32db5a..189efa0 100644 --- a/src/bin/edje_cc_handlers.c +++ b/src/bin/edje_cc_handlers.c @@ -2690,7 +2690,7 @@ st_collections_group_limits_vertical(void) pc = eina_list_data_get(eina_list_last(edje_collections)); pc->limits.vertical_count++; pc->limits.vertical = realloc(pc->limits.vertical, pc->limits.vertical_count * sizeof (Edje_Limit *)); - if (!pc->limits.vertical || el) + if (!pc->limits.vertical || !el) { ERR("%s: Error. Not enough memory.", progname); exit(-1); @@ -2733,7 +2733,7 @@ st_collections_group_limits_horizontal(void) pc = eina_list_data_get(eina_list_last(edje_collections)); pc->limits.horizontal_count++; pc->limits.horizontal = realloc(pc->limits.horizontal, pc->limits.horizontal_count * sizeof (Edje_Limit *)); - if (!pc->limits.horizontal || el) + if (!pc->limits.horizontal || !el) { ERR("%s: Error. Not enough memory.", progname); exit(-1); @@ -4989,13 +4989,10 @@ st_collections_group_parts_part_description_rel2_to_y(void) static void st_collections_group_parts_part_description_image_normal(void) { - Edje_Part_Collection *pc; Edje_Part_Description_Image *ed; check_arg_count(1); - pc = eina_list_data_get(eina_list_last(edje_collections)); - if (current_part->type != EDJE_PART_TYPE_IMAGE) { ERR("%s: Error. parse error %s:%i. " -- 2.7.4