From cea61291e4254b19bdc32cf232535e18728e01f8 Mon Sep 17 00:00:00 2001 From: tangyuxin <462747508@qq.com> Date: Fri, 20 Jul 2018 15:30:08 +0800 Subject: [PATCH] =?UTF-8?q?[components][dfs]=E4=BF=AE=E5=A4=8Dlist=5Ffd?= =?UTF-8?q?=E6=89=93=E5=8D=B0=E4=B9=B1=E7=A0=81=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/dfs/src/dfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/dfs/src/dfs.c b/components/dfs/src/dfs.c index 31102f49b..46e3e5122 100644 --- a/components/dfs/src/dfs.c +++ b/components/dfs/src/dfs.c @@ -540,7 +540,7 @@ int list_fd(void) { struct dfs_fd *fd = fd_table->fds[index]; - if (fd != RT_NULL) + if (fd && fd->fops) { rt_kprintf("%2d ", index); if (fd->type == FT_DIRECTORY) rt_kprintf("%-7.7s ", "dir"); -- GitLab