Przeglądaj źródła

Update dfs.c

修复list_fd打印乱码问题
Bluebear233 6 lat temu
rodzic
commit
052e6009d0
1 zmienionych plików z 1 dodań i 1 usunięć
  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");