From 9a7c8a8705d88985b9e5eda59e79812132d21ec9 Mon Sep 17 00:00:00 2001 From: Olaf Barthel Date: Thu, 10 Mar 2005 13:28:05 +0000 Subject: [PATCH] - Corrected a typo in the OS4 destructor code. git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14876 87f5fb63-7c3d-0410-a384-fd976d0f7a62 --- library/crtbegin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/crtbegin.c b/library/crtbegin.c index 79d1f47..e51d896 100644 --- a/library/crtbegin.c +++ b/library/crtbegin.c @@ -1,5 +1,5 @@ /* - * $Id: crtbegin.c,v 1.6 2005-03-10 09:55:03 obarthel Exp $ + * $Id: crtbegin.c,v 1.7 2005-03-10 13:28:05 obarthel Exp $ * * :ts=4 * @@ -60,7 +60,7 @@ _fini(void) the next following destructor. */ (void)setjmp(__exit_jmp_buf); - for(i = j, num_dtors = 0 ; __DTOR_LIST__[j] != NULL ; j++) + for(j = 0, num_dtors = 0 ; __DTOR_LIST__[j] != NULL ; j++) num_dtors++; while(i++ < num_dtors)