aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog2
-rw-r--r--mail/session.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 934add80d4..b7273c0ef1 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,7 @@
2001-01-12 Jeffrey Stedfast <fejj@ximian.com>
+ * session.c (mail_session_set_password): strdup() the key.
+
* mail-config-druid.c (construct): We don't want to be able to set
the reply-to in the config druid.
(druid_finish): Don't set a reply-to anymore.
diff --git a/mail/session.c b/mail/session.c
index b35116d904..a4a2122ddc 100644
--- a/mail/session.c
+++ b/mail/session.c
@@ -293,5 +293,5 @@ mail_session_forget_passwords (BonoboUIComponent *uih, void *user_data,
void
mail_session_set_password (const char *url, const char *password)
{
- g_hash_table_insert (passwords, url, g_strdup (password));
+ g_hash_table_insert (passwords, g_strdup (url), g_strdup (password));
}