]> granicus.if.org Git - neomutt/commitdiff
Add ctx->vsize = 0 in a couple of places
authorVincent Lefevre <vincent@vinc17.net>
Tue, 24 Jul 2018 01:52:41 +0000 (03:52 +0200)
committerRichard Russon <rich@flatcap.org>
Sat, 1 Sep 2018 17:06:08 +0000 (18:06 +0100)
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.

mbox/mbox.c
sort.c

index 7eeff862eb0baf0b9d6f27971bfcd2344341556a..60e8f91f6eee16d02fd6b4082ee61f357d66aba3 100644 (file)
@@ -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 a4551ee92ce7d571829a6eb0d926ea0a09ad6067..4527f80ac76cca5e53bd0b7fcc4d9c80bebfd23c 100644 (file)
--- 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! */
   }