summaryrefslogtreecommitdiffstats
path: root/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'log.c')
-rw-r--r--log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/log.c b/log.c
index 0ce4d85f7..7f8867482 100644
--- a/log.c
+++ b/log.c
@@ -140,9 +140,9 @@ error(const char *fmt,...)
void
sigdie(const char *fmt,...)
{
+#ifdef DO_LOG_SAFE_IN_SIGHAND
va_list args;
-#ifdef DO_LOG_SAFE_IN_SIGHAND
va_start(args, fmt);
do_log(SYSLOG_LEVEL_FATAL, fmt, args);
va_end(args);