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: 2019-10-25~671^2~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=26a6214ed06b287e67c65acf178ea9190692840f;p=neomutt 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/mbox.c b/mbox/mbox.c index 7eeff862e..60e8f91f6 100644 --- a/mbox/mbox.c +++ b/mbox/mbox.c @@ -666,6 +666,7 @@ static int reopen_mailbox(struct 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 a4551ee92..4527f80ac 100644 --- a/sort.c +++ b/sort.c @@ -369,6 +369,7 @@ void mutt_sort_headers(struct Context *ctx, bool 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! */ }