mirror of
https://github.com/systemd/systemd.git
synced 2024-11-07 01:27:11 +03: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, ...) {
|
const char *format, ...) {
|
||||||
|
|
||||||
static char buffer[LINE_MAX];
|
static char buffer[LINE_MAX];
|
||||||
int saved_errno = errno;
|
|
||||||
va_list ap;
|
va_list ap;
|
||||||
|
|
||||||
va_start(ap, format);
|
va_start(ap, format);
|
||||||
@ -637,9 +636,6 @@ void log_assert(
|
|||||||
|
|
||||||
log_dispatch(LOG_CRIT, file, line, func, buffer);
|
log_dispatch(LOG_CRIT, file, line, func, buffer);
|
||||||
abort();
|
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) {
|
int log_set_target_from_string(const char *e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user