From e3359f8349cf972052604c089b5bab71f5e33095 Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 24 Sep 2019 20:44:58 +0000 Subject: Some minor performance improvements - most notably, don't search the input state table if the next character matches the same state as before. --- log.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'log.c') diff --git a/log.c b/log.c index c002663e..44b24c67 100644 --- a/log.c +++ b/log.c @@ -131,6 +131,9 @@ log_debug(const char *msg, ...) { va_list ap; + if (log_file == NULL) + return; + va_start(ap, msg); log_vwrite(msg, ap); va_end(ap); -- cgit v1.2.3