From 2b7dec8661029fd531b3818ca5a5470fa038751c Mon Sep 17 00:00:00 2001 From: Michal Schmidt Date: Tue, 17 Jan 2012 10:21:30 +0100 Subject: [PATCH] log: remove useless variable abort() never returns. Not even if the signal handler catches SIGABRT. --- src/log.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/log.c b/src/log.c index 79c63a18..04e90eb2 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) { -- 2.39.5