diff options
| author | David Lin <[email protected]> | 2020-02-29 16:53:44 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-02-29 16:53:44 +0800 |
| commit | fac95192ea241deb543c0af4421c31fce667fca2 (patch) | |
| tree | cb20882f60c4aab36b590c4229539a8f1c204ae2 /libcpu | |
| parent | 02722864d6204d1671c8409276a41b78d1d2a9e8 (diff) | |
[finsh]Minor optimization in finsh_compiler.c
The code just clean the first member of array 'finsh_vm_stack', but it works well in the past years,
memset(&finsh_vm_stack[0], 0, sizeof(finsh_vm_stack[0]));
Is it better to re-code as below, it will be more readable and robust:
memset(&finsh_vm_stack[0], 0, sizeof(finsh_vm_stack));
Diffstat (limited to 'libcpu')
0 files changed, 0 insertions, 0 deletions
