Browse Source

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.
pull/2332/head
Stefan Krah 14 years ago
parent
commit
0e41981cd5
  1. 2
      Modules/_decimal/libmpdec/mpdecimal.h

2
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__); \

Loading…
Cancel
Save