forked from enlightenment/efl
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
This commit is contained in:
parent
fb2ce1ec75
commit
7100139d58
|
@ -754,10 +754,10 @@ check_program(Edje_Part_Collection *pc, Edje_Program *ep, Eet_File *ef)
|
|||
|
||||
/*
|
||||
* we are accessing part with an id,
|
||||
* if actions is ACTION_STOP or ACTION_TYPE_SCRIPT, then id is from the parts array.
|
||||
* if actions is ACTION_STOP or ACTION_TYPE_SCRIPT, then id is NOT from the parts array.
|
||||
* In order to not crash here, we should continue here.
|
||||
*/
|
||||
if (ep->action != EDJE_ACTION_TYPE_ACTION_STOP || ep->action != EDJE_ACTION_TYPE_SCRIPT)
|
||||
if (ep->action == EDJE_ACTION_TYPE_ACTION_STOP || ep->action == EDJE_ACTION_TYPE_SCRIPT)
|
||||
continue;
|
||||
|
||||
if (et->id >= (int) pc->parts_count)
|
||||
|
|
Loading…
Reference in New Issue