From: Michal Schmidt Date: Tue, 17 Jan 2012 09:21:30 +0000 (+0100) Subject: log: remove useless variable X-Git-Tag: v39~41 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=2b7dec8661029fd531b3818ca5a5470fa038751c log: remove useless variable abort() never returns. Not even if the signal handler catches SIGABRT. --- diff --git a/src/log.c b/src/log.c index 79c63a18e..04e90eb20 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) {