MXS-2019: Fix atexit handlers

The code now registers all functions once instead of one function multiple
times.
This commit is contained in:
Markus Mäkelä 2018-08-17 17:35:41 +03:00
parent 435963f2ed
commit 0fbd789572
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -1464,7 +1464,7 @@ int main(int argc, char **argv)
*/
for (int i = 0; exitfunp[i] != NULL; i++)
{
int l = atexit(*exitfunp);
int l = atexit(exitfunp[i]);
if (l != 0)
{