From 7d71ad2b8589bef1bdf26c3cfec5ab99b6bba3b9 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Mon, 27 May 2024 12:51:57 -0400 Subject: update last operation after flushing, reopening, or setting file position --- src/stdio/fseek.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/stdio/fseek.c') diff --git a/src/stdio/fseek.c b/src/stdio/fseek.c index 9f4bd733..f9f3371a 100644 --- a/src/stdio/fseek.c +++ b/src/stdio/fseek.c @@ -20,6 +20,8 @@ int fseek(FILE *stream, long int offset, int whence) } else if (whence == SEEK_SET) { } + stream->operation = OP_NONE; + return 1; } -- cgit v1.2.1