From: Vincent Lefevre Date: Tue, 24 Jul 2018 01:52:41 +0000 (+0200) Subject: Add ctx->vsize = 0 in a couple of places. X-Git-Tag: mutt-1-11-rel~110 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2030998edda4b820a2cd820e36ca1d99b675001d;p=mutt Add ctx->vsize = 0 in a couple of places. It is not clear whether this is needed, but in both cases, the old value (if not 0) is obsolete. If there is a bug somewhere else about vsize, it will be easier to notice it. --- diff --git a/mbox.c b/mbox.c index 171689f0..8ed1d169 100644 --- a/mbox.c +++ b/mbox.c @@ -1246,6 +1246,7 @@ int mutt_reopen_mailbox (CONTEXT *ctx, int *index_hint) ctx->hdrmax = 0; /* force allocation of new headers */ ctx->msgcount = 0; ctx->vcount = 0; + ctx->vsize = 0; ctx->tagged = 0; ctx->deleted = 0; ctx->new = 0; diff --git a/sort.c b/sort.c index 7be810dc..f2e1d5ef 100644 --- a/sort.c +++ b/sort.c @@ -289,6 +289,7 @@ void mutt_sort_headers (CONTEXT *ctx, int init) * in that routine, so we must make sure to zero the vcount member. */ ctx->vcount = 0; + ctx->vsize = 0; mutt_clear_threads (ctx); return; /* nothing to do! */ }