summaryrefslogtreecommitdiff
path: root/pp_hot.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2017-07-15 22:12:41 +0100
committerDavid Mitchell <davem@iabyn.com>2017-07-27 11:30:23 +0100
commit3773545d7938a87216a5f326c367a8c445193939 (patch)
tree5114f3113d95617bb9bb7508db97b42f40e6a710 /pp_hot.c
parent7c114860c0fa8ade5e00a4b609d2fbd11d5a494c (diff)
downloadperl-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp_hot.c b/pp_hot.c
index d4b32c9ff0..c580f26021 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -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;
}