summaryrefslogtreecommitdiffstats
path: root/src/fileio.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fileio.c')
-rw-r--r--src/fileio.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fileio.c b/src/fileio.c
index 1d16ee8dd1..388446a482 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -2099,12 +2099,12 @@ rewind_retry:
/* First try finding a NL, for Dos and Unix */
if (try_dos || try_unix)
{
+ /* Reset the carriage return counter. */
+ if (try_mac)
+ try_mac = 1;
+
for (p = ptr; p < ptr + size; ++p)
{
- /* Reset the carriage return counter. */
- if (try_mac)
- try_mac = 1;
-
if (*p == NL)
{
if (!try_unix