From 1431e3e5bf67227450cbf6b1e0e9cf77e935ce34 Mon Sep 17 00:00:00 2001 From: Leo Yuriev Date: Thu, 18 May 2017 14:14:59 +0300 Subject: [PATCH] test: fix logging for stupid MSVC. --- test/log.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/test/log.cc b/test/log.cc index 4f1df4e4..2254e3f0 100644 --- a/test/log.cc +++ b/test/log.cc @@ -114,6 +114,7 @@ bool output(const logging::loglevel priority, const char *format, va_list ap) { prefix.c_str(), level2str(priority), suffix.c_str()); va_list ones; + memset(&ones, 0, sizeof(ones)) /* zap MSVC and other stupid compilers */; if (priority >= error) va_copy(ones, ap); vfprintf(last, format, ap);