# HG changeset patch # User Timo Sirainen # Date 1443378810 -10800 # Node ID 83ccad730ea361bbd72891b0b2fb91932751fef7 # Parent a887dc2b3fb94b157710c4a4fde8a396e34100cf dsync: Removed unnecessary code - cur_mail is never NULL at this point. Found by Coverity. diff -r a887dc2b3fb9 -r 83ccad730ea3 src/doveadm/dsync/dsync-mailbox-import.c --- 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,