edje: calc - remove pointer comparison while finding part desc

Only strcmp comparision is realiable.
@fix
This commit is contained in:
Amitesh Singh 2015-12-09 15:46:41 +05:30
parent 20ef85e307
commit c892a1cb71
1 changed files with 1 additions and 2 deletions

View File

@ -460,8 +460,7 @@ _edje_part_description_find(Edje *ed, Edje_Real_Part *rp, const char *state_name
{ {
d = ep->other.desc[i]; d = ep->other.desc[i];
if (d->state.name && (d->state.name == state_name || if (d->state.name && (!strcmp(d->state.name, state_name)))
!strcmp(d->state.name, state_name)))
{ {
if (!approximate) if (!approximate)
{ {