]> granicus.if.org Git - neomutt/commitdiff
imap: Don't use Context in imap_mbox_close
authorMehdi Abaakouk <sileht@sileht.net>
Thu, 20 Dec 2018 06:48:42 +0000 (07:48 +0100)
committerRichard Russon <rich@flatcap.org>
Thu, 20 Dec 2018 12:56:08 +0000 (12:56 +0000)
imap/imap.c

index 09cbab5df9a7e59ac12df33d7b0b91646eb02d9b..82e0b21da11b237be3fc0706338b030143795342 100644 (file)
@@ -2265,7 +2265,7 @@ static int imap_mbox_close(struct Context *ctx)
    * mailbox and should clean up adata.  Otherwise, we don't want to
    * touch adata - it's still being used.
    */
-  if (ctx == mdata->ctx)
+  if (m == adata->mailbox)
   {
     if (adata->status != IMAP_FATAL && adata->state >= IMAP_SELECTED)
     {