Skip to content

Commit eb246bb

Browse files
committed
S_sv_gets_append_to_utf8 - sv_gets upgrades tsv, so create SVt_PV directly.
1 parent 3122115 commit eb246bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9147,7 +9147,7 @@ Perl_sv_collxfrm_flags(pTHX_ SV *const sv, STRLEN *const nxp, const I32 flags)
91479147
static char *
91489148
S_sv_gets_append_to_utf8(pTHX_ SV *const sv, PerlIO *const fp, SSize_t append)
91499149
{
9150-
SV * const tsv = newSV_type(SVt_NULL);
9150+
SV * const tsv = newSV_type(SVt_PV);
91519151
ENTER;
91529152
SAVEFREESV(tsv);
91539153
sv_gets(tsv, fp, 0);

0 commit comments

Comments
 (0)