cmPropertyMap: Require a non-empty name parameter.

The cmGetPropertyCommand already checks for this.
This commit is contained in:
Stephen Kelly
2015-06-06 09:41:20 +02:00
parent 7c0aa672fe
commit 3ac4b90bfd
6 changed files with 28 additions and 11 deletions
+5 -1
View File
@@ -84,7 +84,11 @@ bool cmGetDirectoryPropertyCommand
return true;
}
const char *prop = dir->GetProperty(*i);
const char *prop = 0;
if (!i->empty())
{
prop = dir->GetProperty(*i);
}
if (prop)
{
this->Makefile->AddDefinition(variable, prop);