summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorDouglas Lankshear <doug@lankshear.net>1998-06-10 04:28:27 -0700
committerGurusamy Sarathy <gsar@cpan.org>1998-06-11 06:35:54 +0000
commitd17537aab689bff5dd6b2e2650edc82102b86270 (patch)
treeee2365e4c3602f4f756283717d2c4eb4f82d2995 /perl.c
parent535ce2143fdbc17f8a3816d44a821db0c2c7f2d2 (diff)
downloadperl-d17537aab689bff5dd6b2e2650edc82102b86270.tar.gz
misc win32 fixes
Subject: [PATCH 5.004_66] Message-ID: <001a01bd949d$8fd18050$a32fa8c0@tau.Active> p4raw-id: //depot/perl@1116
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/perl.c b/perl.c
index a72264c7f1..9d70377406 100644
--- a/perl.c
+++ b/perl.c
@@ -603,7 +603,10 @@ CPerlObj::perl_atexit(void (*fn) (CPerlObj*,void *), void *ptr)
perl_atexit(void (*fn) (void *), void *ptr)
#endif
{
- Renew(exitlist, exitlistlen+1, PerlExitListEntry);
+ if(exitlist)
+ Renew(exitlist, exitlistlen+1, PerlExitListEntry);
+ else
+ New(999, exitlist, 1, PerlExitListEntry);
exitlist[exitlistlen].fn = fn;
exitlist[exitlistlen].ptr = ptr;
++exitlistlen;