Mercurial > dovecot > core-2.2
changeset 17219:f0b8cf119b7f
dsync: Fixed giving -n "" followed by other -n parameters.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 15 Apr 2014 23:02:11 +0200 |
parents | 2ef62e1f44f2 |
children | be480cfcd7bf |
files | src/doveadm/dsync/dsync-brain.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/doveadm/dsync/dsync-brain.c Tue Apr 15 22:28:26 2014 +0200 +++ b/src/doveadm/dsync/dsync-brain.c Tue Apr 15 23:02:11 2014 +0200 @@ -159,11 +159,11 @@ p_array_init(&brain->sync_namespaces, brain->pool, array_count(&set->sync_namespaces)); array_foreach(&set->sync_namespaces, nsp) { - if (str_len(sync_ns_str) > 0) - str_append_c(sync_ns_str, '\n'); str_append(sync_ns_str, (*nsp)->prefix); + str_append_c(sync_ns_str, '\n'); array_append(&brain->sync_namespaces, nsp, 1); } + str_delete(sync_ns_str, str_len(sync_ns_str)-1); } brain->sync_box = p_strdup(brain->pool, set->sync_box); brain->exclude_mailboxes = set->exclude_mailboxes == NULL ? NULL :