before compiling them.
Patch by Rafael Fonseca <rfonseca@profusion.mobi>.
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@49999
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
stl->name = parse_str(0);
EINA_LIST_FOREACH(edje_file->styles, l, tstl)
{
- if ((stl != tstl) && (!strcmp(stl->name, tstl->name)))
+ if (stl->name && tstl->name && (stl != tstl) && (!strcmp(stl->name, tstl->name)))
{
ERR("%s: Error. parse error %s:%i. There is already a style named \"%s\"",
progname, file_in, line - 1, stl->name);
int fd;
off_t size;
char *data, *p;
+ Eina_List *l;
+ Edje_Style *stl;
if (!tmp_dir)
#ifdef HAVE_EVIL
}
free(data);
close(fd);
+
+ EINA_LIST_FOREACH(edje_file->styles, l, stl)
+ if (!stl->name)
+ {
+ ERR("%s: Error. style must have a name.", progname);
+ exit(-1);
+ }
}
int