From: Richard Russon Date: Mon, 1 Jul 2019 13:05:41 +0000 (+0100) Subject: fix compress local init X-Git-Tag: 2019-10-25~148^2~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1942fe6563f5231addad9dd3ee2235a3c3be492b;p=neomutt fix compress local init --- diff --git a/compress.c b/compress.c index d4da3dd64..2aebfae02 100644 --- a/compress.c +++ b/compress.c @@ -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;