summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2012-08-29 08:36:40 -0700
committerFather Chrysostomos <sprout@cpan.org>2012-08-30 18:18:07 -0700
commit956be2d47c8be1238119303e892c672d5de736ad (patch)
treeca72f30bca79308a15f2786635da0fbd7aafdb3d /toke.c
parentf68f7dc11e746ce69ed4eb3843aa2002a9487c20 (diff)
downloadperl-956be2d47c8be1238119303e892c672d5de736ad.tar.gz
Avoid uninit warning for qq|${\<<FOO}|
If a here-doc occurs inside a single-line quote-like operator inside a file (as opposed to an eval), it produces an uninitialized warning. The goto I added in commit 99bd9d90 wentto the wrong place.
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toke.c b/toke.c
index 665f977d56..0a74efefcf 100644
--- a/toke.c
+++ b/toke.c
@@ -9751,8 +9751,8 @@ S_scan_heredoc(pTHX_ register char *s)
s = olds;
}
else
+ streaming:
sv_setpvs(tmpstr,""); /* avoid "uninitialized" warning */
- streaming:
term = PL_tokenbuf[1];
len--;
while (s >= PL_bufend) { /* multiple line string? */