[dovecot-cvs] dovecot: Compiler warning fixes

dovecot at dovecot.org dovecot at dovecot.org
Wed Jun 13 23:01:02 EEST 2007


details:   http://hg.dovecot.org/dovecot/rev/d9d047b743d5
changeset: 5727:d9d047b743d5
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Jun 13 22:57:25 2007 +0300
description:
Compiler warning fixes

diffstat:

2 files changed, 2 insertions(+), 2 deletions(-)
src/lib-index/mail-index-view-sync.c      |    2 +-
src/lib-index/mail-transaction-log-view.c |    2 +-

diffs (24 lines):

diff -r 0f5ece26eb4f -r d9d047b743d5 src/lib-index/mail-index-view-sync.c
--- a/src/lib-index/mail-index-view-sync.c	Wed Jun 13 22:21:47 2007 +0300
+++ b/src/lib-index/mail-index-view-sync.c	Wed Jun 13 22:57:25 2007 +0300
@@ -250,7 +250,7 @@ int mail_index_view_sync_begin(struct ma
 {
 	struct mail_index_view_sync_ctx *ctx;
 	struct mail_index_map *map;
-	enum mail_transaction_type log_get_mask, visible_mask;
+	enum mail_transaction_type log_get_mask, visible_mask = 0;
 	ARRAY_TYPE(seq_range) expunges = ARRAY_INIT;
 
 	i_assert(!view->syncing);
diff -r 0f5ece26eb4f -r d9d047b743d5 src/lib-index/mail-transaction-log-view.c
--- a/src/lib-index/mail-transaction-log-view.c	Wed Jun 13 22:21:47 2007 +0300
+++ b/src/lib-index/mail-transaction-log-view.c	Wed Jun 13 22:57:25 2007 +0300
@@ -326,7 +326,7 @@ log_view_is_record_valid(struct mail_tra
 {
 	enum mail_transaction_type rec_type;
 	ARRAY_TYPE(seq_range) uids = ARRAY_INIT;
-	buffer_t *uid_buf;
+	buffer_t *uid_buf = NULL;
 	uint32_t rec_size;
 	bool ret = TRUE;
 


More information about the dovecot-cvs mailing list