Browse Source

Merge pull request #1583 from Bluebear233/patch-1

Update dfs.c
Bernard Xiong 6 years ago
parent
commit
0b93fa4aec
1 changed files with 1 additions and 1 deletions
  1. 1 1
      components/dfs/src/dfs.c

+ 1 - 1
components/dfs/src/dfs.c

@@ -529,7 +529,7 @@ int list_fd(void)
     {
         struct dfs_fd *fd = fd_table->fds[index];
 
-        if (fd->fops)
+        if (fd != RT_NULL)
         {
             rt_kprintf("%2d ", index);
             if (fd->type == FT_DIRECTORY)    rt_kprintf("%-7.7s ", "dir");