mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-21 20:21:29 +02:00
...And a crash.
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user