diff options
author | David Mitchell <davem@iabyn.com> | 2017-07-15 22:12:41 +0100 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2017-07-27 11:30:23 +0100 |
commit | 3773545d7938a87216a5f326c367a8c445193939 (patch) | |
tree | 5114f3113d95617bb9bb7508db97b42f40e6a710 /pp_hot.c | |
parent | 7c114860c0fa8ade5e00a4b609d2fbd11d5a494c (diff) | |
download | perl-3773545d7938a87216a5f326c367a8c445193939.tar.gz |
change sv_setsv(sv,NULL) to sv_set_undef(sv)
There are still a few core occurrences of
sv_setsv(sv, NULL);
which is equivalent to
sv_setsv(sv, &PL_sv_undef);
but which can now be done more efficiently with
sv_set_undef(sv);
Diffstat (limited to 'pp_hot.c')
-rw-r--r-- | pp_hot.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2245,7 +2245,7 @@ Perl_do_readline(pTHX) if (gimme == G_SCALAR) { /* undef TARG, and push that undefined value */ if (type != OP_RCATLINE) { - sv_setsv(TARG,NULL); + sv_set_undef(TARG); } PUSHTARG; } |