summaryrefslogtreecommitdiff
path: root/libproto/pop/url.c
diff options
context:
space:
mode:
Diffstat (limited to 'libproto/pop/url.c')
-rw-r--r--libproto/pop/url.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libproto/pop/url.c b/libproto/pop/url.c
index eba710259..c25ce1070 100644
--- a/libproto/pop/url.c
+++ b/libproto/pop/url.c
@@ -49,10 +49,9 @@ url_pop_destroy (mu_url_t url MU_ARG_UNUSED)
int
_url_pop_init (mu_url_t url)
{
- int status = mu_url_init (url, MU_POP_PORT, "pop");
- if (status)
- return status;
-
+ if (url->port == 0)
+ url->port = MU_POP_PORT;
+
url->_destroy = url_pop_destroy;
/* not valid in pop url */

Return to:

Send suggestions and report system problems to the System administrator.