aboutsummaryrefslogtreecommitdiffstats
path: root/printf.c
diff options
context:
space:
mode:
Diffstat (limited to 'printf.c')
-rw-r--r--printf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/printf.c b/printf.c
index 0893216..5203932 100644
--- a/printf.c
+++ b/printf.c
@@ -104,7 +104,9 @@ static inline void _out_null(char character, char* buffer, size_t idx, size_t ma
static inline void _out_char(char character, char* buffer, size_t idx, size_t maxlen)
{
(void)buffer; (void)idx; (void)maxlen;
- _putchar(character);
+ if (character) {
+ _putchar(character);
+ }
}