From: Timo Sirainen Date: Wed, 27 Jun 2018 14:16:24 +0000 (+0300) Subject: lib-storage: Initialize reset_id in index_index_copy_cache X-Git-Tag: 2.3.3.rc1~140 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=48e3a1954e02e6fa11bfa021769aeeb5c01e079d;p=thirdparty%2Fdovecot%2Fcore.git lib-storage: Initialize reset_id in index_index_copy_cache Makes valgrind happy with clang's optimizations. --- diff --git a/src/lib-storage/index/index-rebuild.c b/src/lib-storage/index/index-rebuild.c index 4727928c80..d64555fa59 100644 --- a/src/lib-storage/index/index-rebuild.c +++ b/src/lib-storage/index/index-rebuild.c @@ -32,7 +32,7 @@ index_index_copy_cache(struct index_rebuild_context *ctx, { struct mail_index_map *map; const void *data; - uint32_t reset_id; + uint32_t reset_id = 0; bool expunged; if (ctx->cache_ext_id == (uint32_t)-1)