summaryrefslogtreecommitdiffstats
path: root/c/src/exec/libcsupport/src/open.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/exec/libcsupport/src/open.c')
-rw-r--r--c/src/exec/libcsupport/src/open.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/c/src/exec/libcsupport/src/open.c b/c/src/exec/libcsupport/src/open.c
index 32fd4076e6..7efa18e829 100644
--- a/c/src/exec/libcsupport/src/open.c
+++ b/c/src/exec/libcsupport/src/open.c
@@ -143,6 +143,7 @@ int open(
* returned by successful path evaluation.
*/
+ iop->offset = 0;
iop->handlers = temp_loc.handlers;
iop->file_info = temp_loc.node_access;
iop->flags |= rtems_libio_fcntl_flags( flags );