Browse Source

cmStringAlgorithms: Fix core.NonNullParamChecker diagnostic in cmAlphaNum

Brad King 1 year ago
parent
commit
5c7a55edc2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/cmStringAlgorithms.h

+ 1 - 1
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)