This commit is contained in:
eli 2021-11-30 01:30:34 +00:00
parent f37f9607c1
commit db6051479e

View File

@ -60,6 +60,8 @@ namespace internal {
// Returns the value of the flag, or NULL if the parsing failed.
static const char* ParseGoogleMockFlagValue(const char* str, const char* flag,
bool def_optional) {
size_t count = 0;
// str and flag must not be NULL.
if (str == nullptr || flag == nullptr) return nullptr;