From b4d30064cc36f4cb6eb4f82243ba68adbf309b4a Mon Sep 17 00:00:00 2001 From: CYFS <2805686936@qq.com> Date: Wed, 25 Sep 2024 08:04:57 +0800 Subject: [PATCH] [components] change variable name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 为什么提交这份PR (why to submit this PR) #9397 你的解决方案是什么 (what is your solution) 将 line 758的dir改为link_dir --- components/finsh/msh.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/finsh/msh.c b/components/finsh/msh.c index 9cc0c6b3406..d8586e54a42 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, "/"); } }