diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2007-01-21 20:33:04 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2007-01-21 20:33:04 +0000 |
commit | 17518a93c3aa48b769ea0fb8a9573b64b2420039 (patch) | |
tree | 03d364e57094e2e9a5a989164deae34ba5ffb169 /eglib/gmain.c | |
parent | 2d5100c20ce354fb1c2d936a719779a85c99cb11 (diff) |
Fix get_boolean "true" mapping
Diffstat (limited to 'eglib/gmain.c')
-rw-r--r-- | eglib/gmain.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eglib/gmain.c b/eglib/gmain.c index 108df5f5..a2c095f3 100644 --- a/eglib/gmain.c +++ b/eglib/gmain.c @@ -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; |