From: chaoskagami Date: Tue, 14 Jun 2016 21:07:54 +0000 (-0400) Subject: @TuxSH found the crash bug. How did I miss that one? X-Git-Tag: v0.0.11 X-Git-Url: https://chaos.moe/g/?a=commitdiff_plain;h=6b9f56df259581cc836df98951bc80f38e267279;p=corbenik%2Fcorbenik.git @TuxSH found the crash bug. How did I miss that one? --- 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') {