From 57db16efecf15adc553251e876711fdd37674232 Mon Sep 17 00:00:00 2001 From: "Ying Ruei Liang (KK)" Date: Wed, 9 Dec 2015 15:01:25 +0800 Subject: [PATCH] Correct usage of variable arguments --- src/app/log.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/log.cpp b/src/app/log.cpp index f9a41472c..d3ec160a2 100644 --- a/src/app/log.cpp +++ b/src/app/log.cpp @@ -68,6 +68,7 @@ void verbose_log(const char* format, ...) fflush(app::log_fileptr); #ifdef _DEBUG + va_start(ap, format); vfprintf(stderr, format, ap); fflush(stderr); #endif