From 247a12697fd421a1e461ec85bb1ea569f18fcf13 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Wed, 28 Sep 2005 09:57:50 +0000 Subject: Use g_ascii_strcasecmp() instead of strcasecmp(). We are comparing to the 2005-09-28 Tor Lillqvist * gui/component/addressbook.c (get_remember_password): Use g_ascii_strcasecmp() instead of strcasecmp(). We are comparing to the literal "true", just casefolding ASCII is enough. Also better for portability. svn path=/trunk/; revision=30391 --- addressbook/ChangeLog | 7 +++++++ addressbook/gui/component/addressbook.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 5727115201..da4d257170 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,10 @@ +2005-09-28 Tor Lillqvist + + * gui/component/addressbook.c (get_remember_password): Use + g_ascii_strcasecmp() instead of strcasecmp(). We are comparing to + the literal "true", just casefolding ASCII is enough. Also better + for portability. + 2005-09-14 Sushma Rai * gui/contact-list-editor/e-contact-list-editor.etspec: Set selection diff --git a/addressbook/gui/component/addressbook.c b/addressbook/gui/component/addressbook.c index fad0efa48c..989efb216a 100644 --- a/addressbook/gui/component/addressbook.c +++ b/addressbook/gui/component/addressbook.c @@ -140,7 +140,7 @@ get_remember_password (ESource *source) const gchar *value; value = e_source_get_property (source, "remember_password"); - if (value && !strcasecmp (value, "true")) + if (value && !g_ascii_strcasecmp (value, "true")) return TRUE; return FALSE; -- cgit v1.2.3