From 0e41981cd512b9735fb0ff63a82d2d5264aff5be Mon Sep 17 00:00:00 2001 From: Stefan Krah Date: Fri, 30 Mar 2012 14:12:20 +0200 Subject: [PATCH] Use abort() rather than exit() to appease tools like rpmlint. abort() is used in libmpdec to prevent undefined behavior if an invalid context is used. This cannot occur for the _decimal module since user input for the context is validated. --- Modules/_decimal/libmpdec/mpdecimal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_decimal/libmpdec/mpdecimal.h b/Modules/_decimal/libmpdec/mpdecimal.h index 01fb59ec0b8..f3f32ac6017 100644 --- a/Modules/_decimal/libmpdec/mpdecimal.h +++ b/Modules/_decimal/libmpdec/mpdecimal.h @@ -751,7 +751,7 @@ EXTINLINE void mpd_copy_flags(mpd_t *result, const mpd_t *a); #define mpd_err_fatal(...) \ do {fprintf(stderr, "%s:%d: error: ", __FILE__, __LINE__); \ fprintf(stderr, __VA_ARGS__); fputc('\n', stderr); \ - exit(1); \ + abort(); \ } while (0) #define mpd_err_warn(...) \ do {fprintf(stderr, "%s:%d: warning: ", __FILE__, __LINE__); \