From 121aba030880974fcdaac1422db5a0c2eccb0932 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Thu, 29 Jun 2017 15:41:21 -0400 Subject: [PATCH] add parenthesis around truth value to quieten compiler --- src/zm_logger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zm_logger.cpp b/src/zm_logger.cpp index 6cfe00163..ee3a5a8b5 100644 --- a/src/zm_logger.cpp +++ b/src/zm_logger.cpp @@ -195,7 +195,7 @@ void Logger::initialise( const std::string &id, const Options &options ) { level( tempLevel ); mFlush = false; - if (envPtr = getenv( "LOG_FLUSH")) { + if ( (envPtr = getenv("LOG_FLUSH")) ) { mFlush = atoi( envPtr ); } else if ( config.log_debug ) { mFlush = true;