mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-16 11:36:19 +07:00
log: remove useless variable
abort() never returns. Not even if the signal handler catches SIGABRT.
This commit is contained in:
parent
e2110e5d1b
commit
2b7dec8661
@ -625,7 +625,6 @@ void log_assert(
|
||||
const char *format, ...) {
|
||||
|
||||
static char buffer[LINE_MAX];
|
||||
int saved_errno = errno;
|
||||
va_list ap;
|
||||
|
||||
va_start(ap, format);
|
||||
@ -637,9 +636,6 @@ void log_assert(
|
||||
|
||||
log_dispatch(LOG_CRIT, file, line, func, buffer);
|
||||
abort();
|
||||
|
||||
/* If the user chose to ignore this SIGABRT, we are happy to go on, as if nothing happened. */
|
||||
errno = saved_errno;
|
||||
}
|
||||
|
||||
int log_set_target_from_string(const char *e) {
|
||||
|
Loading…
Reference in New Issue
Block a user