Eolian gen: Don't fail if file is empty (--gi)

@fix
This commit is contained in:
Jean-Philippe Andre 2015-12-14 16:14:29 +09:00
parent 232b08cef3
commit 6dcde68d24
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ _read_file(const char *filename, Eina_Strbuf **buf)
fseek(fd, 0, SEEK_END);
long file_size = ftell(fd);
if (file_size <= 0)
if (file_size < 0)
{
fprintf(stderr, "eolian: could not get length of '%s'\n", filename);
fclose(fd);