summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2014-12-27 22:35:20 -0800
committerFather Chrysostomos <sprout@cpan.org>2014-12-27 22:35:33 -0800
commitca2770d807cee660972b886c40b0aa841d784b64 (patch)
treee7070133fa9d6ed3879f41c731866576e6754ec2 /pp_sys.c
parentd19fe907288ac4a936ca7052f12f200dcc8ebab7 (diff)
downloadperl-ca2770d807cee660972b886c40b0aa841d784b64.tar.gz
pp_sys.c:pp_gmtime: Remove redundant EXTEND_MORTAL
The purpose of EXTEND_MORTAL is to extend the mortals stack only once before pushing multiple items. Here we are just going to push one item, so extending it gains us nothing, as sv_2mortal is going to do that anyway. Moreover, we will not even be using the mortals stack if there has been an error.
Diffstat (limited to 'pp_sys.c')
-rw-r--r--pp_sys.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/pp_sys.c b/pp_sys.c
index aa006e6d30..a301770671 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -4649,7 +4649,6 @@ PP(pp_gmtime)
if (GIMME_V != G_ARRAY) { /* scalar context */
EXTEND(SP, 1);
- EXTEND_MORTAL(1);
if (err == NULL)
RETPUSHUNDEF;
else {