[evolution] Prevent a null pointer crash in strcmp



commit cc47d3318a2332790505ebaa333dbe5b8616bdd8
Author: Fridrich Å trba <fridrich strba bluewin ch>
Date:   Wed Jun 9 10:34:10 2010 +0200

    Prevent a null pointer crash in strcmp

 mail/mail-session.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/mail/mail-session.c b/mail/mail-session.c
index 5e52aad..8714823 100644
--- a/mail/mail-session.c
+++ b/mail/mail-session.c
@@ -846,7 +846,7 @@ set_socks_proxy_from_gconf (void)
 	client = mail_config_get_gconf_client ();
 
 	mode = gconf_client_get_string (client, MODE_PROXY, NULL);
-	if (!strcmp(mode, "manual")) {
+	if (!g_strcmp0(mode, "manual")) {
 		host = gconf_client_get_string (client, KEY_SOCKS_HOST, NULL); /* NULL-GError */
 		port = gconf_client_get_int (client, KEY_SOCKS_PORT, NULL); /* NULL-GError */
 		camel_session_set_socks_proxy (session, host, port);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]