From 1829a23fd3b06c2917a3b97201484a5a10e6642a Mon Sep 17 00:00:00 2001 From: Antti Kantee Date: Sun, 27 Dec 2015 16:00:21 +0000 Subject: [PATCH] Allow NULL putc in bmk_printf_init() --- lib/libbmk_core/subr_prf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/libbmk_core/subr_prf.c b/lib/libbmk_core/subr_prf.c index 6538d87..969543c 100644 --- a/lib/libbmk_core/subr_prf.c +++ b/lib/libbmk_core/subr_prf.c @@ -81,6 +81,8 @@ void bmk_printf_init(void (*putc)(int), void (*flush)(void)) { + if (putc == NULL) + putc = (void *)nullfun; v_putc = putc; if (flush == NULL) flush = nullfun; -- 2.39.5