We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b729fb3 commit 826062dCopy full SHA for 826062d
pp_ctl.c
@@ -4415,13 +4415,11 @@ S_doopen_pm(pTHX_ SV *name)
4415
return NULL;
4416
4417
if (memENDPs(p, namelen, ".pm")) {
4418
- SV *const pmcsv = sv_newmortal();
4419
- PerlIO * pmcio;
+ SV *const pmcsv = sv_mortalcopy_flags(name, SV_GMAGIC|SV_NOSTEAL|SV_DO_COW_SVSETSV);
4420
4421
- SvSetSV_nosteal(pmcsv,name);
4422
sv_catpvs(pmcsv, "c");
4423
4424
- pmcio = check_type_and_open(pmcsv);
+ PerlIO * pmcio = check_type_and_open(pmcsv);
4425
if (pmcio)
4426
return pmcio;
4427
}
0 commit comments