refuse to handle a 0 sized file without an error

SVN revision: 32609
This commit is contained in:
Carsten Haitzler 2007-11-12 06:15:08 +00:00
parent 78840e0091
commit 22dbedf987
1 changed files with 4 additions and 0 deletions

View File

@ -497,6 +497,10 @@ eet_open(const char *file, Eet_File_Mode mode)
else
return NULL;
}
else if (file_stat.st_size == 0)
{
return NULL;
}
/* We found one */
if (ef && (file_stat.st_mtime != ef->mtime))