From: Amitesh Singh Date: Wed, 9 Dec 2015 10:16:41 +0000 (+0530) Subject: edje: calc - remove pointer comparison while finding part desc X-Git-Tag: upstream/1.20.0~7948 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c892a1cb714fed496cbf5568c4d43880b6fb67b2;p=platform%2Fupstream%2Fefl.git edje: calc - remove pointer comparison while finding part desc Only strcmp comparision is realiable. @fix --- diff --git a/src/lib/edje/edje_calc.c b/src/lib/edje/edje_calc.c index b0742cf..c06e3ac 100644 --- a/src/lib/edje/edje_calc.c +++ b/src/lib/edje/edje_calc.c @@ -460,8 +460,7 @@ _edje_part_description_find(Edje *ed, Edje_Real_Part *rp, const char *state_name { d = ep->other.desc[i]; - if (d->state.name && (d->state.name == state_name || - !strcmp(d->state.name, state_name))) + if (d->state.name && (!strcmp(d->state.name, state_name))) { if (!approximate) {