diff options
Diffstat (limited to 'nuttx/libc/stdio/lib_libflushall.c')
-rw-r--r-- | nuttx/libc/stdio/lib_libflushall.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/libc/stdio/lib_libflushall.c b/nuttx/libc/stdio/lib_libflushall.c index 22baed968..9bb94c5c8 100644 --- a/nuttx/libc/stdio/lib_libflushall.c +++ b/nuttx/libc/stdio/lib_libflushall.c @@ -111,7 +111,7 @@ int lib_flushall(FAR struct streamlist *list) * write data in the stream. */ - if (stream->fs_filedes >= 0 && (stream->fs_oflags & O_WROK) != 0) + if (stream->fs_fd >= 0 && (stream->fs_oflags & O_WROK) != 0) { /* Flush the writable FILE */ |