summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJunsuChoi <jsuya.choi@samsung.com>2019-08-22 07:15:30 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-08-22 07:15:30 -0400
commit167e3c4c298dd2b16735805fba1f78c40a2962a1 (patch)
tree287705171c74658e35887a15b01eb539e763f4bc /src
parentcce73a2b4b36b9f4792c29535b8207e788399fe1 (diff)
edje_cc: Fix always true condition.
Summary: The condition at 742 line is always true. So I fix it. If action is not ACTION_STOP or ACTION_TYPE_SCRIPT, go to continue. Test Plan: N/A Reviewers: bu5hm4n, Hermet, zmike Reviewed By: zmike Subscribers: zmike, cedric, #reviewers, kimcinoo, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9667
Diffstat (limited to 'src')
-rw-r--r--src/bin/edje/edje_cc_out.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/edje/edje_cc_out.c b/src/bin/edje/edje_cc_out.c
index 2b5f700e3e..f932eac9e9 100644
--- a/src/bin/edje/edje_cc_out.c
+++ b/src/bin/edje/edje_cc_out.c
@@ -736,10 +736,10 @@ check_program(Edje_Part_Collection *pc, Edje_Program *ep, Eet_File *ef)
736 736
737 /* 737 /*
738 * we are accessing part with an id, 738 * we are accessing part with an id,
739 * if actions is ACTION_STOP or ACTION_TYPE_SCRIPT, then id is from the parts array. 739 * if actions is ACTION_STOP or ACTION_TYPE_SCRIPT, then id is NOT from the parts array.
740 * In order to not crash here, we should continue here. 740 * In order to not crash here, we should continue here.
741 */ 741 */
742 if (ep->action != EDJE_ACTION_TYPE_ACTION_STOP || ep->action != EDJE_ACTION_TYPE_SCRIPT) 742 if (ep->action == EDJE_ACTION_TYPE_ACTION_STOP || ep->action == EDJE_ACTION_TYPE_SCRIPT)
743 continue; 743 continue;
744 744
745 if (et->id >= (int) pc->parts_count) 745 if (et->id >= (int) pc->parts_count)