From: Timo Sirainen Date: Wed, 3 Aug 2016 10:18:17 +0000 (+0300) Subject: lib-index: Fixed debug logging. X-Git-Tag: 2.2.26~439 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5d5553da84f92e08466f9fa1c6d537e93a48b87b;p=thirdparty%2Fdovecot%2Fcore.git lib-index: Fixed debug logging. --- diff --git a/src/lib-index/mail-cache-lookup.c b/src/lib-index/mail-cache-lookup.c index f3e875123c..0f83198dc2 100644 --- a/src/lib-index/mail-cache-lookup.c +++ b/src/lib-index/mail-cache-lookup.c @@ -635,8 +635,10 @@ mail_cache_get_missing_reason(struct mail_cache_view *view, uint32_t seq) if (offset != 0) break; } - if (seq == 0) - return t_strdup_printf("Cache file is empty, reset_id=%u", reset_id); + if (seq == 0) { + return t_strdup_printf("Cache file is empty, reset_id=%u", + view->cache->hdr->file_seq); + } uint32_t uid; mail_index_lookup_uid(view->view, seq, &uid);