From: Timo Sirainen Date: Mon, 28 Sep 2009 19:57:48 +0000 (-0400) Subject: mail_location: If it ends with ":", ignore it instead of adding ":" character. X-Git-Tag: 2.0.alpha1~111 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5c597df6aa8d81de4053c6986fab7739f3b44b20;p=thirdparty%2Fdovecot%2Fcore.git mail_location: If it ends with ":", ignore it instead of adding ":" character. If ":" is really wanted, it should be done with "::". --HG-- branch : HEAD --- diff --git a/src/lib-storage/mailbox-list.c b/src/lib-storage/mailbox-list.c index 8abd0b2820..c0358382d2 100644 --- a/src/lib-storage/mailbox-list.c +++ b/src/lib-storage/mailbox-list.c @@ -217,7 +217,7 @@ static const char *split_next_arg(const char *const **_args) while (*args != NULL && **args == '\0') { args++; if (*args == NULL) { - str = t_strconcat(str, ":", NULL); + /* string ends with ":", just ignore it. */ break; } str = t_strconcat(str, ":", *args, NULL);