edje_cc: abort compile when unnamed part exists

Summary: abort compile when unnamed part exists.

Reviewers: raster, reutskiy.v.v

Reviewed By: reutskiy.v.v

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D3723
This commit is contained in:
Vyacheslav Reutskiy 2016-02-23 11:06:55 +02:00
parent a2dbaa2759
commit 81f8e8683d
1 changed files with 5 additions and 0 deletions

View File

@ -14647,6 +14647,11 @@ edje_cc_handlers_hierarchy_pop(void)
{
unsigned int i;
if (!current_part->name)
{
error_and_abort(NULL, "parse error near %s:%i. Unnamed part exists in Group \"%s\".", file_in, line - 1, current_de->entry);
}
for (i = 0; i < current_part->other.desc_count; i++)
{
if (!current_part->other.desc[i]->state.name)