mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1141032: Fix a string comparison when checking for env overriding JIT defaults; r=h4writer
This commit is contained in:
parent
039b8750e7
commit
c3f7d8c441
@ -43,14 +43,10 @@ T overrideDefault(const char *param, T dflt) {
|
||||
if (!str)
|
||||
return dflt;
|
||||
if (IsBool<T>::value) {
|
||||
if (strcmp(str, "true") == 0 ||
|
||||
strcmp(str, "yes")) {
|
||||
if (strcmp(str, "true") == 0 || strcmp(str, "yes") == 0)
|
||||
return true;
|
||||
}
|
||||
if (strcmp(str, "false") == 0 ||
|
||||
strcmp(str, "no")) {
|
||||
if (strcmp(str, "false") == 0 || strcmp(str, "no") == 0)
|
||||
return false;
|
||||
}
|
||||
Warn(param, str);
|
||||
} else {
|
||||
Maybe<int> value = ParseInt(str);
|
||||
|
Loading…
Reference in New Issue
Block a user