COMMON: Fix ConfMan.getBool() to correctly process missing values

This commit is contained in:
Eugene Sandulenko 2021-04-19 20:15:15 +02:00
parent 63a48de8d3
commit 0cb63ae556
No known key found for this signature in database
GPG Key ID: 014D387312D34F08

View File

@ -92,7 +92,8 @@ bool parseBool(const String &val, bool &valAsBool) {
}
if (val.equalsIgnoreCase("false") ||
val.equalsIgnoreCase("no") ||
val.equals("0")) {
val.equals("0") ||
val.empty()) {
valAsBool = false;
return true;
}