diff options
| author | CYFS <[email protected]> | 2024-09-25 08:04:57 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-09-24 20:04:57 -0400 |
| commit | b4d30064cc36f4cb6eb4f82243ba68adbf309b4a (patch) | |
| tree | e399dceed7f284b2e1a461337c50390183c7ca56 | |
| parent | 58055e7584deeae1b75aed803177999ffdd88325 (diff) | |
[components] change variable name
为什么提交这份PR (why to submit this PR)
#9397
你的解决方案是什么 (what is your solution)
将 line 758的dir改为link_dir
| -rw-r--r-- | components/finsh/msh.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/finsh/msh.c b/components/finsh/msh.c index 9cc0c6b340..d8586e54a4 100644 --- a/components/finsh/msh.c +++ b/components/finsh/msh.c @@ -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, "/"); } } |
