X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2Ffclose.c;h=ee772fbb4708a6319d0911552d83ad7a27a07f66;hb=e8dbf00a789e3b56ca6c3d88e8048b7b2c18b797;hp=9481470de12777352763f15e5c0b5834b832466a;hpb=bd6746732536fdf2ebaadff6f98aee0879b1674d;p=musl 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);