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.
This commit is contained in:
parent
0d37dcd335
commit
7e10f1691f
@ -3287,7 +3287,7 @@ cmFileCommand::HandleDownloadCommand(std::vector<std::string> const& args)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!chunkDebug.empty())
|
if (!logVar.empty())
|
||||||
{
|
{
|
||||||
chunkDebug.push_back(0);
|
chunkDebug.push_back(0);
|
||||||
this->Makefile->AddDefinition(logVar, &*chunkDebug.begin());
|
this->Makefile->AddDefinition(logVar, &*chunkDebug.begin());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user