mirror of
https://github.com/badaix/snapcast.git
synced 2025-08-04 09:08:47 +02:00
fix bool value
This commit is contained in:
parent
6c5a224313
commit
2939ace883
1 changed files with 1 additions and 1 deletions
|
@ -716,7 +716,7 @@ template <>
|
|||
inline void Value<bool>::parse(OptionName what_name, const char* value)
|
||||
{
|
||||
bool val =
|
||||
((value != nullptr) && (strcmp(value, "1") == 0) || (strcmp(value, "true") == 0) || (strcmp(value, "True") == 0) || (strcmp(value, "TRUE") == 0));
|
||||
((value != nullptr) && ((strcmp(value, "1") == 0) || (strcmp(value, "true") == 0) || (strcmp(value, "True") == 0) || (strcmp(value, "TRUE") == 0)));
|
||||
add_value(val);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue