diff options
author | Michal Schmidt <mschmidt@redhat.com> | 2012-01-17 10:21:30 +0100 |
---|---|---|
committer | Michal Schmidt <mschmidt@redhat.com> | 2012-01-17 12:34:53 +0100 |
commit | 2b7dec8661029fd531b3818ca5a5470fa038751c (patch) | |
tree | 70572cfc1b069e64a5803965205c6daaa992164a | |
parent | e2110e5d1bf36b995efa62a9a05db5636ed05d46 (diff) |
log: remove useless variable
abort() never returns. Not even if the signal handler catches SIGABRT.
-rw-r--r-- | src/log.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -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) { |