projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix undefined call order in fclose, possible lost output depending on compiler
[musl]
/
src
/
stdio
/
fclose.c
diff --git
a/src/stdio/fclose.c
b/src/stdio/fclose.c
index
26bc37e
..
9481470
100644
(file)
--- a/
src/stdio/fclose.c
+++ b/
src/stdio/fclose.c
@@
-13,7
+13,7
@@
int fclose(FILE *f)
OFLUNLOCK();
}
OFLUNLOCK();
}
- r =
fflush(f) | f->close(f
);
+ r =
-(fflush(f) || f->close(f)
);
if (!perm) free(f);
if (!perm) free(f);