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 ab02cca commit 2a21c53Copy full SHA for 2a21c53
pp_ctl.c
@@ -4407,13 +4407,11 @@ S_doopen_pm(pTHX_ SV *name)
4407
return NULL;
4408
4409
if (memENDPs(p, namelen, ".pm")) {
4410
- SV *const pmcsv = sv_newmortal();
4411
- PerlIO * pmcio;
+ SV *const pmcsv = sv_mortalcopy_flags(name, SV_GMAGIC|SV_NOSTEAL|SV_DO_COW_SVSETSV);
4412
4413
- SvSetSV_nosteal(pmcsv,name);
4414
sv_catpvs(pmcsv, "c");
4415
4416
- pmcio = check_type_and_open(pmcsv);
+ PerlIO * pmcio = check_type_and_open(pmcsv);
4417
if (pmcio)
4418
return pmcio;
4419
}
0 commit comments