summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorJan Dubois <jand@activestate.com>1998-06-11 22:28:36 +0200
committerGurusamy Sarathy <gsar@cpan.org>1998-06-12 07:21:29 +0000
commit7614df0c0f0d0458f8f9c442cd557e6387b4e40d (patch)
tree0204adf5e339ef4cedeea4d74755a93a0d866e6a /perl.c
parent98b8ca77004b7e8368865d4af1f1ec8d6a876c8c (diff)
downloadperl-7614df0c0f0d0458f8f9c442cd557e6387b4e40d.tar.gz
added patch, undo earlier workaround
Subject: Re: Why does saferealloc(NULL,size) croak? [PATCH] against _66 Message-ID: <35831f69.4975644@smtp1.ibm.net> p4raw-id: //depot/perl@1125
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/perl.c b/perl.c
index f436f44d78..7b76edf996 100644
--- a/perl.c
+++ b/perl.c
@@ -604,10 +604,7 @@ CPerlObj::perl_atexit(void (*fn) (CPerlObj*,void *), void *ptr)
perl_atexit(void (*fn) (void *), void *ptr)
#endif
{
- if(exitlist)
- Renew(exitlist, exitlistlen+1, PerlExitListEntry);
- else
- New(999, exitlist, 1, PerlExitListEntry);
+ Renew(exitlist, exitlistlen+1, PerlExitListEntry);
exitlist[exitlistlen].fn = fn;
exitlist[exitlistlen].ptr = ptr;
++exitlistlen;