diff options
author | Douglas Lankshear <doug@lankshear.net> | 1998-06-10 04:28:27 -0700 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1998-06-11 06:35:54 +0000 |
commit | d17537aab689bff5dd6b2e2650edc82102b86270 (patch) | |
tree | ee2365e4c3602f4f756283717d2c4eb4f82d2995 /perl.c | |
parent | 535ce2143fdbc17f8a3816d44a821db0c2c7f2d2 (diff) | |
download | perl-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.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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; |