dovecot-2.2: dsync: Fixed giving -n "" followed by other -n para...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Apr 15 21:02:44 UTC 2014
details: http://hg.dovecot.org/dovecot-2.2/rev/f0b8cf119b7f
changeset: 17219:f0b8cf119b7f
user: Timo Sirainen <tss at iki.fi>
date: Tue Apr 15 23:02:11 2014 +0200
description:
dsync: Fixed giving -n "" followed by other -n parameters.
diffstat:
src/doveadm/dsync/dsync-brain.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (17 lines):
diff -r 2ef62e1f44f2 -r f0b8cf119b7f src/doveadm/dsync/dsync-brain.c
--- 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 :
More information about the dovecot-cvs
mailing list