changeset 18183:b505739970e7

dsync: Crashfix to -F parameter handling.
author Timo Sirainen <tss@iki.fi>
date Tue, 20 Jan 2015 04:46:26 +0200
parents c18b2ffeb882
children ba0b94f11cea
files src/doveadm/dsync/dsync-mailbox-import.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/doveadm/dsync/dsync-mailbox-import.c	Tue Jan 20 04:30:27 2015 +0200
+++ b/src/doveadm/dsync/dsync-mailbox-import.c	Tue Jan 20 04:46:26 2015 +0200
@@ -1246,6 +1246,9 @@
 {
 	const char *const *strp;
 
+	if (!array_is_created(&change->keyword_changes))
+		return FALSE;
+
 	array_foreach(&change->keyword_changes, strp) {
 		switch ((*strp)[0]) {
 		case KEYWORD_CHANGE_FINAL: