diff options
author | Father Chrysostomos <sprout@cpan.org> | 2013-09-08 18:51:56 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2013-09-09 00:52:07 -0700 |
commit | 11710a4c8b6477c347be59acd7ffebd37efa62eb (patch) | |
tree | 7075921636be00d68af26c39d7ddfbe479908a26 /toke.c | |
parent | 9d32676e438eeae700dfda915a5dfd707cc8dc6a (diff) | |
download | perl-11710a4c8b6477c347be59acd7ffebd37efa62eb.tar.gz |
Fix assertion failure with -DT -e\"
$ ./perl -DT -e\"
Assertion failed: (s), function S_printbuf, file toke.c, line 479.
Abort trap: 6
Diffstat (limited to 'toke.c')
-rw-r--r-- | toke.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -6835,7 +6835,13 @@ Perl_yylex(pTHX) case '"': s = scan_str(s,!!PL_madskills,FALSE,FALSE, FALSE); - DEBUG_T( { printbuf("### Saw string before %s\n", s); } ); + DEBUG_T( { + if (s) + printbuf("### Saw string before %s\n", s); + else + PerlIO_printf(Perl_debug_log, + "### Saw unterminated string\n"); + } ); if (PL_expect == XOPERATOR) { if (PL_lex_formbrack && PL_lex_brackets == PL_lex_formbrack) { return deprecate_commaless_var_list(); |