From 0868bf05b84863af70b8b7e88e77999bdcbd541b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Higor=20Eur=C3=ADpedes?= Date: Sun, 14 Jun 2015 21:00:17 -0300 Subject: [PATCH] (content.c) Allow empty files to be read --- content.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content.c b/content.c index 614e21ef59..91552794d2 100644 --- a/content.c +++ b/content.c @@ -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)