mirror of https://github.com/mgba-emu/mgba.git
Null-check that DebugVectors get generated
This commit is contained in:
parent
5f1f6088bd
commit
0b468a9db8
|
@ -466,7 +466,7 @@ static int _parse(struct ARMDebugger* debugger, const char* line) {
|
||||||
if (firstSpace) {
|
if (firstSpace) {
|
||||||
cmdLength = firstSpace - line;
|
cmdLength = firstSpace - line;
|
||||||
dv = _DVParse(debugger, firstSpace + 1);
|
dv = _DVParse(debugger, firstSpace + 1);
|
||||||
if (dv->type == ERROR_TYPE) {
|
if (dv && dv->type == ERROR_TYPE) {
|
||||||
printf("Parse error\n");
|
printf("Parse error\n");
|
||||||
_DVFree(dv);
|
_DVFree(dv);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue