]> granicus.if.org Git - neomutt/commitdiff
fix return code for 'neomutt -Z'
authorRichard Russon <rich@flatcap.org>
Sun, 25 Mar 2018 09:50:02 +0000 (10:50 +0100)
committerRichard Russon <rich@flatcap.org>
Tue, 27 Mar 2018 14:43:31 +0000 (15:43 +0100)
Fixes #1112

main.c

diff --git a/main.c b/main.c
index 52a8d79655ff3531c597d720ad627d1d9a567fbd..c58df013500a334e83533aeade1e89f795d886d8 100644 (file)
--- a/main.c
+++ b/main.c
@@ -532,8 +532,7 @@ int main(int argc, char **argv, char **env)
   }
 
   /* set defaults and read init files */
-  rc = mutt_init(flags & MUTT_NOSYSRC, &commands);
-  if (rc != 0)
+  if (mutt_init(flags & MUTT_NOSYSRC, &commands) != 0)
     goto main_curses;
 
   /* The command line overrides the config */