changeset 19228:83ccad730ea3

dsync: Removed unnecessary code - cur_mail is never NULL at this point. Found by Coverity.
author Timo Sirainen <tss@iki.fi>
date Sun, 27 Sep 2015 21:33:30 +0300
parents a887dc2b3fb9
children 5af9b91c38c0
files src/doveadm/dsync/dsync-mailbox-import.c
diffstat 1 files changed, 2 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/doveadm/dsync/dsync-mailbox-import.c	Sun Sep 27 21:30:56 2015 +0300
+++ b/src/doveadm/dsync/dsync-mailbox-import.c	Sun Sep 27 21:33:30 2015 +0300
@@ -1628,13 +1628,8 @@
 	} else {
 		(void)dsync_mailbox_find_common_expunged_uid(importer, change, result_r);
 	}
-	if (importer->cur_mail != NULL) {
-		*result_r = t_strdup_printf("%s (next local mail UID=%u)",
-					    *result_r, importer->cur_mail->uid);
-	} else {
-		*result_r = t_strdup_printf("%s (no more local mails)",
-					    *result_r);
-	}
+	*result_r = t_strdup_printf("%s (next local mail UID=%u)",
+				    *result_r, importer->cur_mail->uid);
 }
 
 int dsync_mailbox_import_change(struct dsync_mailbox_importer *importer,