summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-10-23 23:24:03 (GMT)
committerBrad King <brad.king@kitware.com>2024-10-26 10:01:09 (GMT)
commit5c7a55edc2f11b96c93cf207773c176ade66326f (patch)
tree93daeb87f5c025e01ecce95af31c158d9ecaf202
parent51ed0eba18988af38ae9da0603b47d534ca50439 (diff)
downloadCMake-5c7a55edc2f11b96c93cf207773c176ade66326f.zip
CMake-5c7a55edc2f11b96c93cf207773c176ade66326f.tar.gz
CMake-5c7a55edc2f11b96c93cf207773c176ade66326f.tar.bz2
cmStringAlgorithms: Fix core.NonNullParamChecker diagnostic in cmAlphaNum
-rw-r--r--Source/cmStringAlgorithms.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmStringAlgorithms.h b/Source/cmStringAlgorithms.h
index 3d7f9b0..2bd615a 100644
--- a/Source/cmStringAlgorithms.h
+++ b/Source/cmStringAlgorithms.h
@@ -146,7 +146,7 @@ public:
{
}
cmAlphaNum(const char* str)
- : View_(str)
+ : View_(str ? cm::string_view(str) : cm::string_view())
{
}
cmAlphaNum(char ch)