summaryrefslogtreecommitdiffstats
path: root/c/src/exec/libcsupport/src/write.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/exec/libcsupport/src/write.c')
-rw-r--r--c/src/exec/libcsupport/src/write.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/c/src/exec/libcsupport/src/write.c b/c/src/exec/libcsupport/src/write.c
index 4b4d076185..13dc90bb89 100644
--- a/c/src/exec/libcsupport/src/write.c
+++ b/c/src/exec/libcsupport/src/write.c
@@ -33,6 +33,7 @@ ssize_t write(
rtems_libio_check_fd( fd );
iop = rtems_libio_iop( fd );
+ rtems_libio_check_is_open(iop);
rtems_libio_check_buffer( buffer );
rtems_libio_check_count( count );
rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );