]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
mail_location: If it ends with ":", ignore it instead of adding ":" character.
authorTimo Sirainen <tss@iki.fi>
Mon, 28 Sep 2009 19:57:48 +0000 (15:57 -0400)
committerTimo Sirainen <tss@iki.fi>
Mon, 28 Sep 2009 19:57:48 +0000 (15:57 -0400)
If ":" is really wanted, it should be done with "::".

--HG--
branch : HEAD

src/lib-storage/mailbox-list.c

index 8abd0b2820bf0f1cb244e19458d188e6620a920b..c0358382d291fd8d5fc9bcde5860aa3f7b5d633e 100644 (file)
@@ -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);