summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Leach <richardleach@users.noreply.github.com>2022-09-09 21:44:07 +0000
committerRichard Leach <richardleach@users.noreply.github.com>2022-09-18 23:50:26 +0100
commit8af03a11d8197fbbc9700846c4aa5c1baa32b281 (patch)
treebf37694842b01440944d0ec95bce3ef0d766645a
parent90dc1489e6280a2f7cd39e74f7be2ec9e556cad7 (diff)
downloadperl-8af03a11d8197fbbc9700846c4aa5c1baa32b281.tar.gz
S_scan_heredoc - use SvPVCLEAR_FRESH on new SV
-rw-r--r--toke.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toke.c b/toke.c
index a7601f3b3a..e16f6f6bfc 100644
--- a/toke.c
+++ b/toke.c
@@ -10935,7 +10935,7 @@ S_scan_heredoc(pTHX_ char *s)
char *oldoldbufptr_save;
streaming:
sv_grow_fresh(tmpstr, 80);
- SvPVCLEAR(tmpstr); /* avoid "uninitialized" warning */
+ SvPVCLEAR_FRESH(tmpstr); /* avoid "uninitialized" warning */
term = PL_tokenbuf[1];
len--;
linestr_save = PL_linestr; /* must restore this afterwards */