Skip to content

Commit

Permalink
[components] change variable name
Browse files Browse the repository at this point in the history
为什么提交这份PR (why to submit this PR)
RT-Thread#9397

你的解决方案是什么 (what is your solution)
将 line 758的dir改为link_dir
  • Loading branch information
CYFS3 committed Sep 25, 2024
1 parent 58055e7 commit b4d3006
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/finsh/msh.c
Original file line number Diff line number Diff line change
Expand Up @@ -755,10 +755,10 @@ void msh_auto_complete_path(char *path)
}
else if (S_ISLNK(buffer.st_mode))
{
DIR *dir = opendir(path);
if (dir)
DIR *link_dir = opendir(path);
if (link_dir)
{
closedir(dir);
closedir(link_dir);
strcat(path, "/");
}
}
Expand Down

0 comments on commit b4d3006

Please sign in to comment.