]> granicus.if.org Git - neomutt/commitdiff
fix compress local init
authorRichard Russon <rich@flatcap.org>
Mon, 1 Jul 2019 13:05:41 +0000 (14:05 +0100)
committerRichard Russon <rich@flatcap.org>
Fri, 5 Jul 2019 11:16:25 +0000 (12:16 +0100)
compress.c

index d4da3dd640de6bc3c988a90589450788c36b8e69..2aebfae02d7186c303d49170e92942960a1fd802 100644 (file)
@@ -468,6 +468,8 @@ static int comp_mbox_open(struct Mailbox *m)
   if (!ci)
     return -1;
 
+  int rc;
+
   /* If there's no close-hook, or the file isn't writable */
   if (!ci->cmd_close || (access(mutt_b2s(m->pathbuf), W_OK) != 0))
     m->readonly = true;
@@ -482,7 +484,7 @@ static int comp_mbox_open(struct Mailbox *m)
     goto cmo_fail;
   }
 
-  int rc = execute_command(m, ci->cmd_open, _("Decompressing %s"));
+  rc = execute_command(m, ci->cmd_open, _("Decompressing %s"));
   if (rc == 0)
     goto cmo_fail;