summaryrefslogtreecommitdiff
path: root/Src/lex.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/lex.c')
-rw-r--r--Src/lex.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/Src/lex.c b/Src/lex.c
index 57b752309..a568e25c4 100644
--- a/Src/lex.c
+++ b/Src/lex.c
@@ -1536,9 +1536,13 @@ parse_subst_string(char *s)
return 1;
}
#ifdef DEBUG
- if (c != STRING || olen != l || errflag) {
+ /*
+ * Historical note: we used to check here for olen == l, but
+ * that's not necessarily the case if we stripped an RCQUOTE.
+ */
+ if (c != STRING || errflag) {
fprintf(stderr, "Oops. Bug in parse_subst_string: %s\n",
- olen < l ? "len < l" : errflag ? "errflag" : "c != STRING");
+ errflag ? "errflag" : "c != STRING");
fflush(stderr);
untokenize(s);
return 1;