From: Richard Russon Date: Fri, 16 Mar 2018 13:54:02 +0000 (+0000) Subject: fix: set the DebugFile X-Git-Tag: neomutt-20180323~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e41a6857fce11ab09cc5a34919e1f5780629efc4;p=neomutt fix: set the DebugFile Make sure that the DebugFile is always set on startup, otherwise `neomutt -d2` will fail and stop the app. --- diff --git a/main.c b/main.c index 9702b01f0..4412fcb50 100644 --- a/main.c +++ b/main.c @@ -455,6 +455,13 @@ int main(int argc, char **argv, char **env) set_default_value("debug_file", (intptr_t) mutt_str_strdup(dfile)); mutt_str_replace(&DebugFile, dfile); } + else + { + /* Make sure that the DebugFile has a value */ + LogAllowDebugSet = true; + reset_value("debug_file"); + LogAllowDebugSet = false; + } if (dlevel) {