summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bin/edje/edje_cc_out.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bin/edje/edje_cc_out.c b/src/bin/edje/edje_cc_out.c
index 8a3bcfb3e5..592b592736 100644
--- a/src/bin/edje/edje_cc_out.c
+++ b/src/bin/edje/edje_cc_out.c
@@ -734,6 +734,12 @@ check_program(Edje_Part_Collection *pc, Edje_Program *ep, Eet_File *ef)
734 { 734 {
735 Edje_Part *part; 735 Edje_Part *part;
736 736
737 if (et->id >= (int) pc->parts_count)
738 {
739 ERR("Target id '%d' greater than possible index '%d'.", et->id, (int) pc->parts_count - 1);
740 exit(-1);
741 }
742
737 part = pc->parts[et->id]; 743 part = pc->parts[et->id];
738 /* verify existence of description in part */ 744 /* verify existence of description in part */
739 if (ep->action == EDJE_ACTION_TYPE_STATE_SET) 745 if (ep->action == EDJE_ACTION_TYPE_STATE_SET)