[gdm] Allow uppercase or lowercase booleans in config file
- From: Ray Strode <halfline src gnome org>
- To: svn-commits-list gnome org
- Subject: [gdm] Allow uppercase or lowercase booleans in config file
- Date: Wed, 15 Jul 2009 18:47:04 +0000 (UTC)
commit 105fa59118334e838eddf6b1e3ee58bb4ed00c85
Author: Ray Strode <rstrode redhat com>
Date: Wed Jul 15 14:43:29 2009 -0400
Allow uppercase or lowercase booleans in config file
Noticed while reviewing bug 577382
common/gdm-settings-utils.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/common/gdm-settings-utils.c b/common/gdm-settings-utils.c
index ca0153b..5c95443 100644
--- a/common/gdm-settings-utils.c
+++ b/common/gdm-settings-utils.c
@@ -278,10 +278,10 @@ gboolean
gdm_settings_parse_value_as_boolean (const char *value,
gboolean *bool)
{
- if (strcmp (value, "true") == 0 || strcmp (value, "1") == 0) {
+ if (g_ascii_strcasecmp (value, "true") == 0 || strcmp (value, "1") == 0) {
*bool = TRUE;
return TRUE;
- } else if (strcmp (value, "false") == 0 || strcmp (value, "0") == 0) {
+ } else if (g_ascii_strcasecmp (value, "false") == 0 || strcmp (value, "0") == 0) {
*bool = FALSE;
return TRUE;
} else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]