cmStringAlgorithms: Fix core.NonNullParamChecker diagnostic in cmAlphaNum

This commit is contained in:
Brad King 2024-10-23 19:24:03 -04:00
parent 51ed0eba18
commit 5c7a55edc2

View File

@ -146,7 +146,7 @@ public:
{
}
cmAlphaNum(const char* str)
: View_(str)
: View_(str ? cm::string_view(str) : cm::string_view())
{
}
cmAlphaNum(char ch)