Skip to content

Commit

Permalink
Allow NULL putc in bmk_printf_init()
Browse files Browse the repository at this point in the history
  • Loading branch information
anttikantee committed Dec 27, 2015
1 parent 8727a1e commit 1829a23
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/libbmk_core/subr_prf.c
Expand Up @@ -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;
Expand Down

0 comments on commit 1829a23

Please sign in to comment.