Merge pull request #3419 from DavidLin1577/patch-5

[finsh]Fixed minor bug in finsh_compiler.c
This commit is contained in:
Bernard Xiong 2020-02-29 22:52:27 +08:00 committed by GitHub
commit dc47abf44b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -890,7 +890,7 @@ int finsh_compiler_run(struct finsh_node* node)
/* clean text segment and vm stack */
memset(&text_segment[0], 0, sizeof(text_segment));
memset(&finsh_vm_stack[0], 0, sizeof(finsh_vm_stack[0]));
memset(&finsh_vm_stack[0], 0, sizeof(finsh_vm_stack));
/* reset compile stack pointer and pc */
finsh_compile_sp = &finsh_vm_stack[0];