(content.c) Allow empty files to be read

This commit is contained in:
Higor Eurípedes 2015-06-14 21:00:17 -03:00
parent 6ec01d10ae
commit 0868bf05b8

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)