mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-11-09 20:45:41 +08:00
1 file changed
+1
-1
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user