Null-check that DebugVectors get generated

This commit is contained in:
Jeffrey Pfau 2013-04-18 01:39:51 -07:00
parent 5f1f6088bd
commit 0b468a9db8
1 changed files with 1 additions and 1 deletions

View File

@ -466,7 +466,7 @@ static int _parse(struct ARMDebugger* debugger, const char* line) {
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;