Skip to content
Snippets Groups Projects
Commit bfa8c1b3 authored by oharboe's avatar oharboe
Browse files

SEGFAULT fix for syntax error.

git-svn-id: svn://svn.berlios.de/openocd/trunk@783 b42882b7-edfa-0310-969c-e2dbd0fdcd60
parent 313547dd
No related branches found
No related tags found
No related merge requests found
......@@ -360,10 +360,14 @@ int jim_command(command_context_t *context, char *line)
if (retcode == JIM_ERR) {
Jim_PrintErrorMessage(interp);
long t;
if (Jim_GetLong(interp, Jim_GetVariableStr(interp, "openocd_result", JIM_ERRMSG), &t)==JIM_OK)
Jim_Obj *openocd_result=Jim_GetVariableStr(interp, "openocd_result", JIM_ERRMSG);
if (openocd_result)
{
return t;
}
if (Jim_GetLong(interp, openocd_result, &t)==JIM_OK)
{
return t;
}
}
return ERROR_FAIL;
}
const char *result;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment