Merge pull request #1796 from heuripedes/master

(content.c) Allow empty files to be read
This commit is contained in:
Twinaphex 2015-06-15 02:08:32 +02:00
commit b08268bc44

View File

@ -63,7 +63,7 @@ static bool read_content_file(unsigned i, const char *path, void **buf,
if (!read_file(path, (void**) &ret_buf, length))
return false;
if (*length <= 0)
if (*length < 0)
return false;
if (i != 0)