Remove unused variable in fflush (#129)

This commit is contained in:
Alison Winters 2021-03-17 20:15:00 -07:00 committed by GitHub
parent 8a236433a2
commit 9c81729008
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,12 +36,12 @@
*/
int fflush(FILE *f) {
size_t i;
int rc, wrote;
int rc;
rc = 0;
if (!f) {
for (i = __fflush.handles.i; i; --i) {
if ((f = __fflush.handles.p[i - 1])) {
if ((wrote = fflush(f)) == -1) {
if (fflush(f) == -1) {
rc = -1;
break;
}