diff options
Diffstat (limited to 'mail/em-account-editor.c')
-rw-r--r-- | mail/em-account-editor.c | 4 |
1 files changed, 3 insertions, 1 deletions
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); } |