Skip to content

Commit b4d3006

Browse files
authored
[components] change variable name
为什么提交这份PR (why to submit this PR) #9397 你的解决方案是什么 (what is your solution) 将 line 758的dir改为link_dir
1 parent 58055e7 commit b4d3006

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/finsh/msh.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -755,10 +755,10 @@ void msh_auto_complete_path(char *path)
755755
}
756756
else if (S_ISLNK(buffer.st_mode))
757757
{
758-
DIR *dir = opendir(path);
759-
if (dir)
758+
DIR *link_dir = opendir(path);
759+
if (link_dir)
760760
{
761-
closedir(dir);
761+
closedir(link_dir);
762762
strcat(path, "/");
763763
}
764764
}

0 commit comments

Comments
 (0)