diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2010-06-09 16:34:10 +0800 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2010-06-09 16:35:16 +0800 |
commit | cc47d3318a2332790505ebaa333dbe5b8616bdd8 (patch) | |
tree | 559be6f92c8c843572be5b6526185ed0c211936d /mail | |
parent | 8d37021d29338cdee627dc032696112560416397 (diff) | |
download | gsoc2013-evolution-cc47d3318a2332790505ebaa333dbe5b8616bdd8.tar gsoc2013-evolution-cc47d3318a2332790505ebaa333dbe5b8616bdd8.tar.gz gsoc2013-evolution-cc47d3318a2332790505ebaa333dbe5b8616bdd8.tar.bz2 gsoc2013-evolution-cc47d3318a2332790505ebaa333dbe5b8616bdd8.tar.lz gsoc2013-evolution-cc47d3318a2332790505ebaa333dbe5b8616bdd8.tar.xz gsoc2013-evolution-cc47d3318a2332790505ebaa333dbe5b8616bdd8.tar.zst gsoc2013-evolution-cc47d3318a2332790505ebaa333dbe5b8616bdd8.zip |
Prevent a null pointer crash in strcmp
Diffstat (limited to 'mail')
-rw-r--r-- | 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 5e52aad86c..8714823f7a 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); |