diff options
-rw-r--r-- | Source/cmStandardIncludes.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmStandardIncludes.h b/Source/cmStandardIncludes.h index 802855c..224e196 100644 --- a/Source/cmStandardIncludes.h +++ b/Source/cmStandardIncludes.h @@ -181,7 +181,8 @@ public: cmStrStreamCleanup cleanup(*this); cmStrStreamCleanup::IgnoreUnusedVariable(cleanup); int pcount = this->pcount(); - return std::string(this->Superclass::str(), pcount); + const char* ptr = this->Superclass::str(); + return std::string(ptr?ptr:"", pcount); } private: cmStringStream(const cmStringStream&); |