dovecot: Minor code cleanup
dovecot at dovecot.org
dovecot at dovecot.org
Thu Jul 19 04:54:27 EEST 2007
details: http://hg.dovecot.org/dovecot/rev/a9ad568ce598
changeset: 6098:a9ad568ce598
user: Timo Sirainen <tss at iki.fi>
date: Thu Jul 19 03:59:39 2007 +0300
description:
Minor code cleanup
diffstat:
1 file changed, 2 insertions(+), 4 deletions(-)
src/lib-storage/index/maildir/maildir-sync-index.c | 6 ++----
diffs (16 lines):
diff -r d5d3adb86e12 -r a9ad568ce598 src/lib-storage/index/maildir/maildir-sync-index.c
--- a/src/lib-storage/index/maildir/maildir-sync-index.c Thu Jul 19 03:51:31 2007 +0300
+++ b/src/lib-storage/index/maildir/maildir-sync-index.c Thu Jul 19 03:59:39 2007 +0300
@@ -250,10 +250,8 @@ maildir_index_update_ext_header(struct m
&data, &data_size) < 0)
data_size = 0;
- if (data_size == sizeof(mbox->maildir_hdr) &&
- !maildir_index_header_has_changed(data, &mbox->maildir_hdr)) {
- /* nothing changed */
- } else {
+ if (data_size != sizeof(mbox->maildir_hdr) ||
+ maildir_index_header_has_changed(data, &mbox->maildir_hdr)) {
mail_index_update_header_ext(trans, mbox->maildir_ext_id, 0,
&mbox->maildir_hdr,
sizeof(mbox->maildir_hdr));
More information about the dovecot-cvs
mailing list