edje_cc: Don't dereference a NULL pointer on badly-formed .edj files.
authoracidx <acidx@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 30 Sep 2010 21:37:49 +0000 (21:37 +0000)
committeracidx <acidx@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 30 Sep 2010 21:37:49 +0000 (21:37 +0000)
(Should have been on r52931.)

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@52932 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/edje_calc.c

index 0f82b8c..dae59db 100644 (file)
@@ -84,8 +84,8 @@ _edje_part_description_find(Edje *ed __UNUSED__, Edje_Real_Part *rp, const char
    for (i = 0; i < ep->other.desc_count; ++i)
      {
        d = ep->other.desc[i];
-
-       if (!strcmp(d->state.name, name))
+       
+       if (d->state.name && !strcmp(d->state.name, name))
          {
             double dst;