[components] change variable name
为什么提交这份PR (why to submit this PR) #9397 你的解决方案是什么 (what is your solution) 将 line 758的dir改为link_dir
This commit is contained in:
parent
58055e7584
commit
b4d30064cc
|
@ -755,10 +755,10 @@ void msh_auto_complete_path(char *path)
|
||||||
}
|
}
|
||||||
else if (S_ISLNK(buffer.st_mode))
|
else if (S_ISLNK(buffer.st_mode))
|
||||||
{
|
{
|
||||||
DIR *dir = opendir(path);
|
DIR *link_dir = opendir(path);
|
||||||
if (dir)
|
if (link_dir)
|
||||||
{
|
{
|
||||||
closedir(dir);
|
closedir(link_dir);
|
||||||
strcat(path, "/");
|
strcat(path, "/");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue