From 0b468a9db8e7b89c7da1786a4c360d55db049bb8 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Thu, 18 Apr 2013 01:39:51 -0700 Subject: [PATCH] Null-check that DebugVectors get generated --- src/debugger/debugger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/debugger/debugger.c b/src/debugger/debugger.c index 6c6587217..6f850eabf 100644 --- a/src/debugger/debugger.c +++ b/src/debugger/debugger.c @@ -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;