diff options
author | Toon Schoenmakers <toon.schoenmakers@copernica.com> | 2015-12-08 11:53:16 +0100 |
---|---|---|
committer | Toon Schoenmakers <toon.schoenmakers@copernica.com> | 2015-12-08 11:53:16 +0100 |
commit | 570590058d16274005a4994fd8f1046d0eaf7f74 (patch) | |
tree | e021e93b80cf342fb2f837087fd89a3e59ed0756 | |
parent | aec191bc6cbb83884466800a750ecad0b37e254f (diff) |
Don't create a std::string with a nullptrv1.5.3
-rw-r--r-- | include/inivalue.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/inivalue.h b/include/inivalue.h index 4f574af..00373e6 100644 --- a/include/inivalue.h +++ b/include/inivalue.h @@ -112,7 +112,8 @@ public: */ std::string stringValue() const { - return std::string(rawValue()); + auto value = rawValue(); + return std::string(value ? value : ""); } /** |