diff options
Diffstat (limited to 'src/io.c')
-rw-r--r-- | src/io.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |