summaryrefslogtreecommitdiff
path: root/ext/standard/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/string.c')
-rw-r--r--ext/standard/string.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/standard/string.c b/ext/standard/string.c
index 6ed6ec2a50..dde97faf4d 100644
--- a/ext/standard/string.c
+++ b/ext/standard/string.c
@@ -5271,8 +5271,7 @@ state_2:
} else if (lc != '\\') {
lc = c;
}
- } else {
- if (p != buf && *(p-1) != '\\' && (!in_q || *p == in_q)) {
+ if (p != buf && (!in_q || *p == in_q)) {
if (in_q) {
in_q = 0;
} else {