From 7b1586dd813508652cc6f13146f524166d8f658a Mon Sep 17 00:00:00 2001 From: Dmitri Tikhonov Date: Sun, 6 May 2018 21:39:19 -0400 Subject: [PATCH] Fix bug in Windows optimized build --- src/liblsquic/lsquic_logger.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/liblsquic/lsquic_logger.c b/src/liblsquic/lsquic_logger.c index 716dec2..ec7e851 100644 --- a/src/liblsquic/lsquic_logger.c +++ b/src/liblsquic/lsquic_logger.c @@ -177,11 +177,11 @@ print_timestamp (void) gettimeofday(&tv, NULL); #ifdef WIN32 { -#ifndef NDEBUG - errno_t e; -#endif time_t t = tv.tv_sec; - e = localtime_s(&tm, &t); +#ifndef NDEBUG + errno_t e = +#endif + localtime_s(&tm, &t); assert(!e); } #else