diff options
author | Nicholas Clark <nick@ccl4.org> | 2009-05-18 13:48:51 +0100 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2009-05-18 13:48:51 +0100 |
commit | 4a341259ef871f26860df2fc95ee4e3bbdeff74d (patch) | |
tree | c9ed6fe14b31883b64152ce74a9a0bca00ce61ce | |
parent | b3a120bf72d91507f4a2782bf0be31aa8b4dba31 (diff) | |
download | perl-4a341259ef871f26860df2fc95ee4e3bbdeff74d.tar.gz |
In perl_clone_using(), don't use Newxz() for arrays we immediately assign to.
-rw-r--r-- | sv.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -12173,8 +12173,8 @@ perl_clone_using(PerlInterpreter *proto_perl, UV flags, } if (proto_perl->Ipsig_ptr) { - Newxz(PL_psig_ptr, SIG_SIZE, SV*); - Newxz(PL_psig_name, SIG_SIZE, SV*); + Newx(PL_psig_ptr, SIG_SIZE, SV*); + Newx(PL_psig_name, SIG_SIZE, SV*); for (i = 1; i < SIG_SIZE; i++) { PL_psig_ptr[i] = sv_dup_inc(proto_perl->Ipsig_ptr[i], param); PL_psig_name[i] = sv_dup_inc(proto_perl->Ipsig_name[i], param); |