summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2015-07-23 15:34:43 +1000
committerTony Cook <tony@develop-help.com>2015-07-23 15:34:43 +1000
commit64821df16a716bfc005acb06c7dc5b72afabe38d (patch)
tree5a93030e1cd196db87469b22eeb1014eefd077dd /toke.c
parent5cce15f303ed613cd36c5bc28b7c05aecb464300 (diff)
downloadperl-64821df16a716bfc005acb06c7dc5b72afabe38d.tar.gz
[perl #123961] handle a missing closing ` for -DT output
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/toke.c b/toke.c
index 205b00b3f4..4a53f2f75c 100644
--- a/toke.c
+++ b/toke.c
@@ -6310,7 +6310,13 @@ Perl_yylex(pTHX)
case '`':
s = scan_str(s,FALSE,FALSE,FALSE,NULL);
- DEBUG_T( { printbuf("### Saw backtick string before %s\n", s); } );
+ DEBUG_T( {
+ if (s)
+ printbuf("### Saw backtick string before %s\n", s);
+ else
+ PerlIO_printf(Perl_debug_log,
+ "### Saw unterminated backtick string\n");
+ } );
if (PL_expect == XOPERATOR)
no_op("Backticks",s);
if (!s)