aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/io.c b/src/io.c
index 04ad99f..8cb9804 100644
--- a/src/io.c
+++ b/src/io.c
@@ -3051,7 +3051,7 @@ io_file_is_empty (char *file)
if (file && (fp = fopen (file, "r")))
{
- if (fgetc (fp) == '\n' || feof (fp))
+ if ((fgetc (fp) == '\n' && fgetc (fp) == EOF) || feof (fp))
{
fclose (fp);
return 1;