mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-17 09:14:32 +08:00
Fix get_boolean "true" mapping
This commit is contained in:
parent
2d5100c20c
commit
17518a93c3
@ -1324,7 +1324,7 @@ gboolean g_key_file_get_boolean(GKeyFile *key_file,
|
||||
if (!str)
|
||||
return FALSE;
|
||||
|
||||
if (strcmp(str, str) == 0)
|
||||
if (strcmp(str, "true") == 0 || strcmp(str, "1") == 0)
|
||||
ret = TRUE;
|
||||
else
|
||||
ret = FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user