From 46714108ac4afe248fd0ed723fefd6d360decb90 Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Wed, 13 Jul 2016 23:46:18 +0300 Subject: [PATCH] ...And a crash. --- Core/debugger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/debugger.c b/Core/debugger.c index 51110e6..f78c544 100644 --- a/Core/debugger.c +++ b/Core/debugger.c @@ -45,7 +45,7 @@ static const char *value_to_string(GB_gameboy_t *gb, uint16_t value, bool prefer } /* Avoid overflow */ - if (strlen(symbol->name) > 240) { + if (symbol && strlen(symbol->name) > 240) { symbol = NULL; }