summaryrefslogtreecommitdiffstats
path: root/Source/cmString.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@users.noreply.gitlab.com>2024-08-27 13:30:00 (GMT)
committerVitaly Stakhovsky <vvs31415@users.noreply.gitlab.com>2024-08-27 14:56:38 (GMT)
commit58da4aa47df7d12c54c2d3f26722eca5dd8ee10f (patch)
treec5d9bf243c3ec1526fd9e171f28d581a6af57e70 /Source/cmString.cxx
parent72607d3402b91c3a9f4579c86175e4ca1ce6aa4e (diff)
downloadCMake-58da4aa47df7d12c54c2d3f26722eca5dd8ee10f.zip
CMake-58da4aa47df7d12c54c2d3f26722eca5dd8ee10f.tar.gz
CMake-58da4aa47df7d12c54c2d3f26722eca5dd8ee10f.tar.bz2
Source: Avoid comparing pointers to nullptr
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;
}