Skip to content

Commit

Permalink
fix: set the DebugFile
Browse files Browse the repository at this point in the history
Make sure that the DebugFile is always set on startup, otherwise
`neomutt -d2` will fail and stop the app.
  • Loading branch information
flatcap committed Mar 16, 2018
1 parent 38072d1 commit e41a685
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit e41a685

Please sign in to comment.