MXS-2019: Fix atexit handlers
The code now registers all functions once instead of one function multiple times.
This commit is contained in:
parent
435963f2ed
commit
0fbd789572
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user