fix fclose return status logic, again
[musl] / src / stdio / fclose.c
index 26bc37e..ee772fb 100644 (file)
@@ -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);