aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-09-28 04:56:05 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-09-28 04:56:05 +0800
commit7511816ec5a6f67e08d0dd4701754af8cf4b5145 (patch)
tree4ff0a9b7c4bc06470f5fff5192600ec013c1a2b5
parentd503c5e7568c0cc1ce13550865a543d8ffbbf056 (diff)
downloadgsoc2013-evolution-7511816ec5a6f67e08d0dd4701754af8cf4b5145.tar.gz
gsoc2013-evolution-7511816ec5a6f67e08d0dd4701754af8cf4b5145.tar.zst
gsoc2013-evolution-7511816ec5a6f67e08d0dd4701754af8cf4b5145.zip
Perform a NULL-check. Hopefully fixes bug #7874.
2001-09-27 Jeffrey Stedfast <fejj@ximian.com> * mail-session.c (mail_session_remember_password): Perform a NULL-check. Hopefully fixes bug #7874. svn path=/trunk/; revision=13198
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/mail-session.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 2895bfac23..c1b83e0ddd 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2001-09-27 Jeffrey Stedfast <fejj@ximian.com>
+
+ * mail-session.c (mail_session_remember_password): Perform a
+ NULL-check. Hopefully fixes bug #7874.
+
2001-09-27 Dan Winship <danw@ximian.com>
* mail-offline-handler.c (service_is_relevant): A service needs to
diff --git a/mail/mail-session.c b/mail/mail-session.c
index d3e06419c2..9c5907443e 100644
--- a/mail/mail-session.c
+++ b/mail/mail-session.c
@@ -446,6 +446,9 @@ mail_session_remember_password (const char *url_string)
CamelURL *url;
char *simple_url;
+ if (!passwords)
+ return;
+
url = camel_url_new (url_string, NULL);
simple_url = camel_url_to_string (url, CAMEL_URL_HIDE_PASSWORD | CAMEL_URL_HIDE_PARAMS);
camel_url_free (url);