diff options
| author | aozima <[email protected]> | 2018-07-20 16:32:02 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-07-20 16:32:02 +0800 |
| commit | c64689147ac4c6d8bf23bc2dc71ed666efef8a14 (patch) | |
| tree | 67c8e441a79a2810841a9ad934f845ac02959747 /components | |
| parent | 6f8c6ac0dcadee0220f8f7e2439700213f3510f0 (diff) | |
| parent | cea61291e4254b19bdc32cf232535e18728e01f8 (diff) | |
Merge pull request #1649 from enkiller/dev
[components][dfs]修复list_fd打印乱码的问题
Diffstat (limited to 'components')
| -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"); |
