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/fflush.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/stdio/fflush.c') diff --git a/src/stdio/fflush.c b/src/stdio/fflush.c index cb5f49c6..a653e0d1 100644 --- a/src/stdio/fflush.c +++ b/src/stdio/fflush.c @@ -54,6 +54,8 @@ int fflush(FILE *stream) RETURN_FAILURE(CONSTANT(EOF)); */ + stream->operation = OP_NONE; + return ret; } -- cgit v1.2.1