From 7e10f1691f61949430180882e3a2484d0859b9e2 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 28 May 2015 10:35:08 -0400 Subject: cmFileCommand: Clarify logic for populating LOG variable The chunkDebug buffer we use to accumulate the LOG variable content is populated if and only if a log variable was requested by the call, but it is much clearer to check that a log variable was requested explicitly before populating it. --- Source/cmFileCommand.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx index 984989e..2c2c1c0 100644 --- a/Source/cmFileCommand.cxx +++ b/Source/cmFileCommand.cxx @@ -3287,7 +3287,7 @@ cmFileCommand::HandleDownloadCommand(std::vector const& args) } } - if(!chunkDebug.empty()) + if (!logVar.empty()) { chunkDebug.push_back(0); this->Makefile->AddDefinition(logVar, &*chunkDebug.begin()); -- cgit v0.12