]> git.marmaro.de Git - mmh/blobdiff - uip/mhtest.c
nonstatic function for atexit, check if atexit fails
[mmh] / uip / mhtest.c
index a1718db77e082691d8857d63c457cd0ecc155a23..aa7e411e195c9e313d580ca48219c1a375b7ec70 100644 (file)
@@ -95,7 +95,9 @@ main(int argc, char **argv)
        struct msgs *mp = NULL;
        CT ct, *ctp;
 
-       atexit(freects_done);
+       if (atexit(freects_done) != 0) {
+               adios(NULL, "atexit failed");
+       }
 
        setlocale(LC_ALL, "");
        invo_name = mhbasename(argv[0]);