Null-check that DebugVectors get generated
Jeffrey Pfau jeffrey@endrift.com
Thu, 18 Apr 2013 01:39:51 -0700
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/debugger/debugger.c
→
src/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;