diff --git a/components/finsh/cmd.c b/components/finsh/cmd.c index 8cd82c2d5..632577404 100644 --- a/components/finsh/cmd.c +++ b/components/finsh/cmd.c @@ -643,6 +643,7 @@ void list_prefix(char *prefix) func_cnt = 0; var_cnt = 0; + min_length = 0; name_ptr = RT_NULL; /* checks in system function call */