Skip to content

Commit 9e31471

Browse files
committed
pp_ctl.c - move logic closer to where it is used
No sense doing something that has not effect.
1 parent 871e680 commit 9e31471

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pp_ctl.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4319,11 +4319,6 @@ S_require_file(pTHX_ SV *sv)
43194319
SvGETMAGIC(loader);
43204320
}
43214321

4322-
Perl_sv_setpvf(aTHX_ namesv, "/loader/0x%" UVxf "/%s",
4323-
diruv, name);
4324-
tryname = SvPVX_const(namesv);
4325-
tryrsfp = NULL;
4326-
43274322
if (SvPADTMP(nsv)) {
43284323
nsv = sv_newmortal();
43294324
SvSetSV_nosteal(nsv,sv);
@@ -4370,6 +4365,11 @@ S_require_file(pTHX_ SV *sv)
43704365
}
43714366
}
43724367

4368+
Perl_sv_setpvf(aTHX_ namesv, "/loader/0x%" UVxf "/%s",
4369+
diruv, name);
4370+
tryname = SvPVX_const(namesv);
4371+
tryrsfp = NULL;
4372+
43734373
ENTER_with_name("call_INC_hook");
43744374
SAVETMPS;
43754375
EXTEND(SP, 2 + ((method && (loader != dirsv)) ? 1 : 0));

0 commit comments

Comments
 (0)