Use g_ascii_strcasecmp() instead of strcasecmp(). We are comparing to the

2005-09-28  Tor Lillqvist  <tml@novell.com>

	* 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
This commit is contained in:
Tor Lillqvist
2005-09-28 09:57:50 +00:00
committed by Tor Lillqvist
parent c22849ea5d
commit 247a12697f
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2005-09-28 Tor Lillqvist <tml@novell.com>
* 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 <rsushma@novell.com>
* gui/contact-list-editor/e-contact-list-editor.etspec: Set selection

View File

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