don't need to strlen here
authordiscomfitor <discomfitor>
Mon, 7 Nov 2011 06:10:06 +0000 (06:10 +0000)
committerdiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 7 Nov 2011 06:10:06 +0000 (06:10 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@64856 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/bin/edje_cc_out.c

index 1d4195e..903bc40 100644 (file)
@@ -1391,7 +1391,7 @@ data_queue_part_lookup(Edje_Part_Collection *pc, const char *name, int *dest)
         if ((pl->pc == pc) && (pl->dest == dest))
           {
              free(pl->name);
-             if (strlen(name) > 0)
+             if (name[0])
                pl->name = mem_strdup(name);
              else
                {