Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2010-02-05 18:05:22 +0300
committerChristopher Faylor <me@cgf.cx>2010-02-05 18:05:22 +0300
commite7fd08839efe218e3ee557e3061c9fd995bbe982 (patch)
tree9456fcab4c411a6670c1738498100f3d8732f4b5 /winsup
parent8c9c8fa9384bb7100bbe693b4ed98426aedd6639 (diff)
* dll_init.cc (per_module::run_dtors): Use consistent method for running
destructors.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/dll_init.cc4
2 files changed, 7 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 4b26c9aee..815b2e338 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2010-02-05 Christopher Faylor <me+cygwin@cgf.cx>
+
+ * dll_init.cc (per_module::run_dtors): Use consistent method for
+ running destructors.
+
2010-02-04 Christopher Faylor <me+cygwin@cgf.cx>
* regcomp.c (p_ere): Workaround incorrect compiler warning.
diff --git a/winsup/cygwin/dll_init.cc b/winsup/cygwin/dll_init.cc
index e449f7777..055b1060f 100644
--- a/winsup/cygwin/dll_init.cc
+++ b/winsup/cygwin/dll_init.cc
@@ -63,8 +63,8 @@ void
per_module::run_dtors ()
{
void (**pfunc)() = dtors;
- for (int i = 1; pfunc[i]; i++)
- (pfunc[i]) ();
+ while (*++pfunc)
+ (*pfunc) ();
}
/* Initialize an individual DLL */