...And a crash.

This commit is contained in:
Lior Halphon 2016-07-13 23:46:18 +03:00
parent c3f1eb26b1
commit 46714108ac

View File

@ -45,7 +45,7 @@ static const char *value_to_string(GB_gameboy_t *gb, uint16_t value, bool prefer
} }
/* Avoid overflow */ /* Avoid overflow */
if (strlen(symbol->name) > 240) { if (symbol && strlen(symbol->name) > 240) {
symbol = NULL; symbol = NULL;
} }