From 6b9f56df259581cc836df98951bc80f38e267279 Mon Sep 17 00:00:00 2001 From: chaoskagami Date: Tue, 14 Jun 2016 17:07:54 -0400 Subject: [PATCH] @TuxSH found the crash bug. How did I miss that one? --- source/std/draw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/std/draw.c b/source/std/draw.c index bdfedc4..7901e1f 100644 --- a/source/std/draw.c +++ b/source/std/draw.c @@ -432,10 +432,10 @@ vfprintf(void *channel, const char *format, va_list ap) char *ref = (char *)format; - unsigned char *color; + unsigned char *color = NULL; if (channel == TOP_SCREEN) color = &color_top; - else if (channel == TOP_SCREEN) + else if (channel == BOTTOM_SCREEN) color = &color_bottom; while (ref[0] != '\0') { -- 2.39.5