summaryrefslogtreecommitdiffstats
path: root/Source/cmGetDirectoryPropertyCommand.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-06-06 07:41:20 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-06-07 07:29:30 (GMT)
commit3ac4b90bfdcca97f1f63056c97afee38cf66ea12 (patch)
treebbfa8812400f195520a2d305b74750606bc2286e /Source/cmGetDirectoryPropertyCommand.cxx
parent7c0aa672fe4f1b5c4a15a89d90cd80009a1399d0 (diff)
downloadCMake-3ac4b90bfdcca97f1f63056c97afee38cf66ea12.zip
CMake-3ac4b90bfdcca97f1f63056c97afee38cf66ea12.tar.gz
CMake-3ac4b90bfdcca97f1f63056c97afee38cf66ea12.tar.bz2
cmPropertyMap: Require a non-empty name parameter.
The cmGetPropertyCommand already checks for this.
Diffstat (limited to 'Source/cmGetDirectoryPropertyCommand.cxx')
-rw-r--r--Source/cmGetDirectoryPropertyCommand.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmGetDirectoryPropertyCommand.cxx b/Source/cmGetDirectoryPropertyCommand.cxx
index 4fe3318..228e53c 100644
--- a/Source/cmGetDirectoryPropertyCommand.cxx
+++ b/Source/cmGetDirectoryPropertyCommand.cxx
@@ -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);