summaryrefslogtreecommitdiffstats
path: root/lib/util/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/util/debug.c')
-rw-r--r--lib/util/debug.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/util/debug.c b/lib/util/debug.c
index d96fcc5322..6f2c3099d4 100644
--- a/lib/util/debug.c
+++ b/lib/util/debug.c
@@ -784,7 +784,9 @@ static int Debug1( const char *format_str, ... )
goto done;
- } else if ( state.logtype != DEBUG_FILE ) {
+ }
+
+ if ( state.logtype != DEBUG_FILE ) {
va_start( ap, format_str );
if (state.fd > 0)
(void)vdprintf( state.fd, format_str, ap );