From 3ac4b90bfdcca97f1f63056c97afee38cf66ea12 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Sat, 6 Jun 2015 09:41:20 +0200 Subject: cmPropertyMap: Require a non-empty name parameter. The cmGetPropertyCommand already checks for this. --- Source/cmGetCMakePropertyCommand.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Source/cmGetCMakePropertyCommand.cxx') diff --git a/Source/cmGetCMakePropertyCommand.cxx b/Source/cmGetCMakePropertyCommand.cxx index 76803c1036..6717035b73 100644 --- a/Source/cmGetCMakePropertyCommand.cxx +++ b/Source/cmGetCMakePropertyCommand.cxx @@ -52,9 +52,11 @@ bool cmGetCMakePropertyCommand } else { - const char *prop = - this->Makefile->GetState() - ->GetGlobalProperty(args[1]); + const char *prop = 0; + if (!args[1].empty()) + { + prop = this->Makefile->GetState()->GetGlobalProperty(args[1]); + } if (prop) { output = prop; -- cgit v1.2.1