all repos — mgba @ 0b468a9db8e7b89c7da1786a4c360d55db049bb8

mGBA Game Boy Advance Emulator

Null-check that DebugVectors get generated
Jeffrey Pfau jeffrey@endrift.com
Thu, 18 Apr 2013 01:39:51 -0700
commit

0b468a9db8e7b89c7da1786a4c360d55db049bb8

parent

5f1f6088bd72ed2cebc4d5747c0937f31f606938

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/debugger/debugger.csrc/debugger/debugger.c

@@ -466,7 +466,7 @@ struct DebugVector* dv = 0;

if (firstSpace) { cmdLength = firstSpace - line; dv = _DVParse(debugger, firstSpace + 1); - if (dv->type == ERROR_TYPE) { + if (dv && dv->type == ERROR_TYPE) { printf("Parse error\n"); _DVFree(dv); return 0;