Fix get_boolean "true" mapping

This commit is contained in:
Johan Hedberg 2007-01-21 20:33:04 +00:00
parent 2d5100c20c
commit 17518a93c3

View File

@ -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;