Skip to content

Commit c23dbef

Browse files
committed
fix(storage/vfs_console): remove possible infinite recursion
1 parent 87fd8b4 commit c23dbef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/esp_vfs_console/vfs_console.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ ssize_t console_write(int fd, const void *data, size_t size)
7373

7474
int console_fstat(int fd, struct stat * st)
7575
{
76-
return fstat(fd, st);
76+
return fstat(vfs_console.fd_primary, st);
7777
}
7878

7979
int console_close(int fd)

0 commit comments

Comments
 (0)