From: Richard Russon Date: Sun, 21 Aug 2016 09:37:40 +0000 (+0100) Subject: fix: neomutt wasn't reading /etc/Muttrc X-Git-Tag: neomutt-20160822~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3ce1e152308cbeeb6cd89cc1d97bf883d044362d;p=neomutt fix: neomutt wasn't reading /etc/Muttrc --- diff --git a/init.c b/init.c index 5a741a248..ce5dcbc63 100644 --- a/init.c +++ b/init.c @@ -3496,16 +3496,16 @@ void mutt_init (int skip_sys_rc, LIST *commands) break; snprintf (buffer, sizeof buffer, "%s/Muttrc", PKGDATADIR); - if (access (buffer, F_OK) == 0) + } while (0); + if (access (buffer, F_OK) == 0) + { + if (source_rc (buffer, &err) != 0) { - if (source_rc (buffer, &err) != 0) - { - fputs (err.data, stderr); - fputc ('\n', stderr); - need_pause = 1; - } + fputs (err.data, stderr); + fputc ('\n', stderr); + need_pause = 1; } - } while (0); + } } /* Read the user's initialization file. */