diff --git a/src/Utilities/TemplateDef.h b/src/Utilities/TemplateDef.h index 05d71e9eef..c158d0f05e 100644 --- a/src/Utilities/TemplateDef.h +++ b/src/Utilities/TemplateDef.h @@ -1522,9 +1522,7 @@ void __declspec(noinline) NullableVector::Read(INI_EX& parser, const char* pS if (parser.ReadString(pSection, pKey)) { this->clear(); - - const char* val = parser.value(); - auto const non_default = _strcmpi(val, ""); + auto const non_default = _strcmpi(parser.value(), ""); this->hasValue = non_default; if (non_default) @@ -1574,9 +1572,7 @@ void __declspec(noinline) NullableIdxVector::Read(INI_EX& parser, cons if (parser.ReadString(pSection, pKey)) { this->clear(); - - const char* val = parser.value(); - auto const non_default = _strcmpi(val, "") != 0; + auto const non_default = _strcmpi(parser.value(), "") != 0; this->hasValue = non_default; if (non_default)