Skip to content

Commit

Permalink
fix crash while loading bsdl file. (script engine issue).
Browse files Browse the repository at this point in the history
  • Loading branch information
jfdelnero committed Dec 19, 2023
1 parent aeb3be5 commit 558147f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib_jtag_core/src/script/script.c
Original file line number Diff line number Diff line change
Expand Up @@ -1080,7 +1080,7 @@ static int cmd_call( script_ctx * ctx, char * line )

ret = JTAG_CORE_INTERNAL_ERROR;

new_ctx = init_script((void*)jc,0x00000000,(void*)&jc->envvar);
new_ctx = init_script((void*)jc,0x00000000,(void*)jc->envvar);
if(new_ctx)
{
new_ctx->script_printf = ctx->script_printf;
Expand Down Expand Up @@ -2488,7 +2488,7 @@ cmd_list script_commands_list[] =

script_ctx * jtagcore_initScript(jtag_core * jc)
{
return init_script((void*)jc,0x00000000,(void*)&jc->envvar);
return init_script((void*)jc,0x00000000,(void*)jc->envvar);
}

void jtagcore_setScriptOutputFunc( script_ctx * ctx, SCRIPT_PRINTF_FUNC ext_printf )
Expand Down
4 changes: 2 additions & 2 deletions lib_jtag_core/src/version.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#define VDIG1 2
#define VDIG2 6
#define VDIG3 3
#define VDIG4 1
#define VDIG4 2

#define STR_DATE "18 Dec 2023"
#define STR_DATE "19 Dec 2023"

#define vxstr(s) vstr(s)
#define vstr(s) #s
Expand Down

0 comments on commit 558147f

Please sign in to comment.