From 17518a93c3aa48b769ea0fb8a9573b64b2420039 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Sun, 21 Jan 2007 20:33:04 +0000 Subject: Fix get_boolean "true" mapping --- eglib/gmain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'eglib/gmain.c') 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; -- cgit