dont segv on prog with no name (illegal anyway)

SVN revision: 16079
This commit is contained in:
Carsten Haitzler 2005-08-09 07:16:48 +00:00
parent 64f2e98808
commit 8885e181b0
1 changed files with 1 additions and 1 deletions

View File

@ -1889,7 +1889,7 @@ st_collections_group_programs_program_name(void)
Edje_Program *lep;
lep = l->data;
if ((lep != ep) && (!strcmp(lep->name, ep->name)))
if ((lep != ep) && && (lep->name) && (!strcmp(lep->name, ep->name)))
{
fprintf(stderr, "%s: Error. parse error %s:%i. There is already a program of the name %s\n",
progname, file_in, line - 1, ep->name);