X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Fstdio%2Ffclose.c;h=ee772fbb4708a6319d0911552d83ad7a27a07f66;hp=26bc37e8c3dbb82a0292f0f67a8b823b56158fc5;hb=78c808b1264cbbec6c7cf4e9c4f321736a218949;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01 diff --git a/src/stdio/fclose.c b/src/stdio/fclose.c index 26bc37e8..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);