musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/stdio/fclose.c 3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/stdio/fclose.c b/src/stdio/fclose.c
index 9481470d..ee772fbb 100644
--- a/src/stdio/fclose.c
+++ b/src/stdio/fclose.c
@@ -13,7 +13,8 @@ int fclose(FILE *f)
OFLUNLOCK();
}
- r = -(fflush(f) || f->close(f));
+ r = fflush(f);
+ r |= f->close(f);
if (!perm) free(f);
generated by cgit v1.2.1 (git 2.18.0) at 2025年10月08日 08:01:58 +0000

AltStyle によって変換されたページ (->オリジナル) /