Skip to content

Commit 0e72d90

Browse files
committed
toke.c: Use SvPV_shrink_to_cur
which is what it is doing, instead of the more general SvPV_renew.
1 parent 64991b1 commit 0e72d90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

toke.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11340,7 +11340,7 @@ Perl_scan_str(pTHX_ char *start, int keep_bracketed_quoted, int keep_delims, int
1134011340
/* if we allocated too much space, give some back */
1134111341
if (SvCUR(sv) + 5 < SvLEN(sv)) {
1134211342
SvLEN_set(sv, SvCUR(sv) + 1);
11343-
SvPV_renew(sv, SvLEN(sv));
11343+
SvPV_shrink_to_cur(sv);
1134411344
}
1134511345

1134611346
/* decide whether this is the first or second quoted string we've read

0 commit comments

Comments
 (0)