diff options
author | Christopher Faylor <me@cgf.cx> | 2010-02-05 18:05:22 +0300 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2010-02-05 18:05:22 +0300 |
commit | e7fd08839efe218e3ee557e3061c9fd995bbe982 (patch) | |
tree | 9456fcab4c411a6670c1738498100f3d8732f4b5 /winsup/cygwin/dll_init.cc | |
parent | 8c9c8fa9384bb7100bbe693b4ed98426aedd6639 (diff) |
* dll_init.cc (per_module::run_dtors): Use consistent method for running
destructors.
Diffstat (limited to 'winsup/cygwin/dll_init.cc')
-rw-r--r-- | winsup/cygwin/dll_init.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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 */ |