diff options
| author | Stephen Kelly <steveire@gmail.com> | 2015-06-06 09:41:20 +0200 |
|---|---|---|
| committer | Stephen Kelly <steveire@gmail.com> | 2015-06-07 09:29:30 +0200 |
| commit | 3ac4b90bfdcca97f1f63056c97afee38cf66ea12 (patch) | |
| tree | bbfa8812400f195520a2d305b74750606bc2286e /Source/cmPropertyMap.cxx | |
| parent | 7c0aa672fe4f1b5c4a15a89d90cd80009a1399d0 (diff) | |
| download | cmake-3ac4b90bfdcca97f1f63056c97afee38cf66ea12.tar.gz | |
cmPropertyMap: Require a non-empty name parameter.
The cmGetPropertyCommand already checks for this.
Diffstat (limited to 'Source/cmPropertyMap.cxx')
| -rw-r--r-- | Source/cmPropertyMap.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/cmPropertyMap.cxx b/Source/cmPropertyMap.cxx index d1402c8321..de2cd0582c 100644 --- a/Source/cmPropertyMap.cxx +++ b/Source/cmPropertyMap.cxx @@ -14,6 +14,8 @@ #include "cmake.h" #include "cmState.h" +#include <assert.h> + cmProperty *cmPropertyMap::GetOrCreateProperty(const std::string& name) { cmPropertyMap::iterator it = this->find(name); @@ -60,10 +62,7 @@ const char *cmPropertyMap bool &chain) const { chain = false; - if (name.empty()) - { - return 0; - } + assert(!name.empty()); cmPropertyMap::const_iterator it = this->find(name); if (it == this->end()) |
