Fix deffect with a missing tokken 'state' in the first description block when
generated by edje_cc (It is perfectly valid to not specify the first description
name as it will always be "default").
Reviewers: cedric, seoz
Reviewed By: cedric
Differential Revision: https://phab.enlightenment.org/D310
Signed-off-by: Cedric Bail <cedric.bail@samsung.com>
if (!ep->default_desc)
{
current_desc = ep->default_desc = ed;
+ ed->state.name = strdup("default");
{ /* Get the ptr of the part above current part in hierarchy */
Edje_Part *node = edje_cc_handlers_hierarchy_parent_get();
exit(-1);
}
+ free((void *)ed->state.name);
ed->state.name = s;
if (get_arg_count() == 1)
ed->state.value = 0.0;