summaryrefslogtreecommitdiffstats
path: root/Source/cmString.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmString.cxx')
-rw-r--r--Source/cmString.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmString.cxx b/Source/cmString.cxx
index f7f6293..d7c0ec3 100644
--- a/Source/cmString.cxx
+++ b/Source/cmString.cxx
@@ -67,7 +67,7 @@ std::string const& String::str()
const char* String::c_str()
{
const char* c = this->data();
- if (c == nullptr) {
+ if (!c) {
return c;
}