summaryrefslogtreecommitdiffstats
path: root/c/src/exec/libcsupport/src/close.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/exec/libcsupport/src/close.c')
-rw-r--r--c/src/exec/libcsupport/src/close.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/c/src/exec/libcsupport/src/close.c b/c/src/exec/libcsupport/src/close.c
index 0583a36b22..04c269664b 100644
--- a/c/src/exec/libcsupport/src/close.c
+++ b/c/src/exec/libcsupport/src/close.c
@@ -24,6 +24,7 @@ int close(
rtems_libio_check_fd(fd);
iop = rtems_libio_iop(fd);
+ rtems_libio_check_is_open(iop);
if ( iop->flags & LIBIO_FLAGS_HANDLER_MASK ) {
int (*fp)(int fd);