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 aa7ef55 commit 99c2d70Copy full SHA for 99c2d70
pp_ctl.c
@@ -4418,13 +4418,11 @@ S_doopen_pm(pTHX_ SV *name)
4418
return NULL;
4419
4420
if (memENDPs(p, namelen, ".pm")) {
4421
- SV *const pmcsv = sv_newmortal();
4422
- PerlIO * pmcio;
+ SV *const pmcsv = sv_mortalcopy_flags(name, SV_GMAGIC|SV_NOSTEAL|SV_DO_COW_SVSETSV);
4423
4424
- SvSetSV_nosteal(pmcsv,name);
4425
sv_catpvs(pmcsv, "c");
4426
4427
- pmcio = check_type_and_open(pmcsv);
+ PerlIO * pmcio = check_type_and_open(pmcsv);
4428
if (pmcio)
4429
return pmcio;
4430
}
0 commit comments