Don't segfault on empty file.

SVN revision: 31721
This commit is contained in:
Sebastian Dransfeld 2007-09-15 08:46:34 +00:00
parent bc1add673e
commit 5b85440817
1 changed files with 10 additions and 7 deletions

View File

@ -521,6 +521,8 @@ data_write(void)
}
/* check that all groups have names */
if (edje_file->collection_dir)
{
for (l = edje_file->collection_dir->entries; l; l = l->next)
{
Edje_Part_Collection_Directory_Entry *de;
@ -532,6 +534,7 @@ data_write(void)
ABORT_WRITE(ef, file_out);
}
}
}
/* check that all spectra are valid */
if (edje_file->spectrum_dir)
{