summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2012-01-17 10:21:30 +0100
committerMichal Schmidt <mschmidt@redhat.com>2012-01-17 12:34:53 +0100
commit2b7dec8661029fd531b3818ca5a5470fa038751c (patch)
tree70572cfc1b069e64a5803965205c6daaa992164a
parente2110e5d1bf36b995efa62a9a05db5636ed05d46 (diff)
log: remove useless variable
abort() never returns. Not even if the signal handler catches SIGABRT.
-rw-r--r--src/log.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/log.c b/src/log.c
index 79c63a18e7..04e90eb20f 100644
--- a/src/log.c
+++ b/src/log.c
@@ -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) {