Skip to content

Commit

Permalink
@TuxSH found the crash bug. How did I miss that one?
Browse files Browse the repository at this point in the history
  • Loading branch information
chaoskagami committed Jun 14, 2016
1 parent e874da5 commit 6b9f56d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/std/draw.c
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit 6b9f56d

Please sign in to comment.