From e41a6857fce11ab09cc5a34919e1f5780629efc4 Mon Sep 17 00:00:00 2001 From: Richard Russon Date: Fri, 16 Mar 2018 13:54:02 +0000 Subject: [PATCH] fix: set the DebugFile Make sure that the DebugFile is always set on startup, otherwise `neomutt -d2` will fail and stop the app. --- main.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/main.c b/main.c index 9702b01f0ea..4412fcb501f 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) {