fix segv!

SVN revision: 25177
This commit is contained in:
Carsten Haitzler 2006-08-28 13:22:16 +00:00
parent 29a186fb48
commit 31e1675f52
1 changed files with 1 additions and 1 deletions

View File

@ -1050,7 +1050,7 @@ eet_write(Eet_File *ef, const char *name, const void *data, int size, int compre
for (efn = ef->header->directory->nodes[hash]; efn; efn = efn->next)
{
/* if it matches */
if (eet_string_match(efn->name, name))
if ((efn->name) && (eet_string_match(efn->name, name)))
{
free(efn->data);
efn->compression = !!compress;