edje: calc - remove pointer comparison while finding part desc
authorAmitesh Singh <amitesh.sh@samsung.com>
Wed, 9 Dec 2015 10:16:41 +0000 (15:46 +0530)
committerAmitesh Singh <amitesh.sh@samsung.com>
Wed, 9 Dec 2015 10:20:03 +0000 (15:50 +0530)
Only strcmp comparision is realiable.
@fix

src/lib/edje/edje_calc.c

index b0742cf..c06e3ac 100644 (file)
@@ -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)
                {