diff options
Diffstat (limited to 'components/dfs/src')
| -rw-r--r-- | components/dfs/src/dfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/dfs/src/dfs.c b/components/dfs/src/dfs.c index 31102f49bd..46e3e51229 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"); |
