summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/dir.c b/dir.c
index a49b244756..f53d7a1ca1 100644
--- a/dir.c
+++ b/dir.c
@@ -598,8 +598,7 @@ remove_backslashes(p)
while (p < pend) {
if (*p == '\\') {
- *p++;
- if (p == pend) break;
+ if (++p == pend) break;
}
*t++ = *p++;
}