]> granicus.if.org Git - mutt/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)
committerVincent Lefevre <vincent@vinc17.net>
Tue, 24 Jul 2018 01:52:41 +0000 (03:52 +0200)
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.c
sort.c

diff --git a/mbox.c b/mbox.c
index 171689f04c83f9e16c96ff3f06417e6db4c0c36d..8ed1d16999038e1d5f16b9365220a3333ac07b23 100644 (file)
--- 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 7be810dce2cffa4d98400343d2b5af8a707c9380..f2e1d5ef9a8a4115760f2a3dd7c802ba20355d51 100644 (file)
--- 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! */
   }