aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2005-01-31 11:18:45 +0800
committerMichael Zucci <zucchi@src.gnome.org>2005-01-31 11:18:45 +0800
commit3a69dc3b8f569e829e7965cb095b29c4a61f67c0 (patch)
treef83e1aa9fca16736626002f005c16288e88220b0
parentcedaa027cc0e470d4eaa937c731f4bc2c465d533 (diff)
downloadgsoc2013-evolution-3a69dc3b8f569e829e7965cb095b29c4a61f67c0.tar
gsoc2013-evolution-3a69dc3b8f569e829e7965cb095b29c4a61f67c0.tar.gz
gsoc2013-evolution-3a69dc3b8f569e829e7965cb095b29c4a61f67c0.tar.bz2
gsoc2013-evolution-3a69dc3b8f569e829e7965cb095b29c4a61f67c0.tar.lz
gsoc2013-evolution-3a69dc3b8f569e829e7965cb095b29c4a61f67c0.tar.xz
gsoc2013-evolution-3a69dc3b8f569e829e7965cb095b29c4a61f67c0.tar.zst
gsoc2013-evolution-3a69dc3b8f569e829e7965cb095b29c4a61f67c0.zip
** See bug #71521.
2005-01-31 Not Zed <NotZed@Ximian.com> ** See bug #71521. * em-account-editor.c (emae_url_set_hostport): dont ever set a NULL host. svn path=/trunk/; revision=28621
-rw-r--r--mail/ChangeLog7
-rw-r--r--mail/em-account-editor.c4
2 files changed, 10 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 756299e61c..d3e02d4c2f 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,10 @@
+2005-01-31 Not Zed <NotZed@Ximian.com>
+
+ ** See bug #71521.
+
+ * em-account-editor.c (emae_url_set_hostport): dont ever set a
+ NULL host.
+
2005-01-28 Not Zed <NotZed@Ximian.com>
** See bug #71520.
diff --git a/mail/em-account-editor.c b/mail/em-account-editor.c
index 8aeb86a99c..75cf6499c6 100644
--- a/mail/em-account-editor.c
+++ b/mail/em-account-editor.c
@@ -944,7 +944,9 @@ emae_url_set_hostport(CamelURL *url, const char *txt)
memcpy(host, txt, port-txt);
host[port-txt] = 0;
} else {
- host = (char *)txt;
+ /* "" is converted to NULL, but if we set NULL on the url,
+ camel_url_to_string strips lots of details */
+ host = (char *)(txt?txt:"");
}
camel_url_set_host(url, host);
}