summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/init.c b/init.c
index 1563b326..a25f388f 100644
--- a/init.c
+++ b/init.c
@@ -1474,6 +1474,7 @@ static void start_debug (void)
if ((debugfile = safe_fopen(buf, "w")) != NULL)
{
t = time (0);
+ setbuf (debugfile, NULL); /* don't buffer the debugging output! */
fprintf (debugfile, "Mutt %s started at %s.\nDebugging at level %d.\n\n",
MUTT_VERSION, asctime (localtime (&t)), debuglevel);
}