diff --git a/terminal.c b/terminal.c index e52db035..143693d8 100644 --- a/terminal.c +++ b/terminal.c @@ -2268,6 +2268,7 @@ void logfopen(void) { writemod[0] = 'a'; /* set append mode */ else if (i == 0) { /* cancelled */ lgfp = NULL; + cfg.logtype = 0; /* disable logging */ return; } }