mirror of https://github.com/python/cpython
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.
This commit is contained in:
parent
ad95c2d25c
commit
0e41981cd5
|
@ -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__); \
|
||||
|
|
Loading…
Reference in New Issue