X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Fstdio%2Ffclose.c;h=373a2c76cc5b71b872817bf4735c7369a6bc4f82;hp=ee772fbb4708a6319d0911552d83ad7a27a07f66;hb=dba68bf98fc708cea4c478278c889fc7ad802b00;hpb=7683fceedebd98dda19b1a379b92406b64ce7f92 diff --git a/src/stdio/fclose.c b/src/stdio/fclose.c index ee772fbb..373a2c76 100644 --- a/src/stdio/fclose.c +++ b/src/stdio/fclose.c @@ -9,7 +9,7 @@ int fclose(FILE *f) OFLLOCK(); if (f->prev) f->prev->next = f->next; if (f->next) f->next->prev = f->prev; - if (ofl_head == f) ofl_head = f->next; + if (libc.ofl_head == f) libc.ofl_head = f->next; OFLUNLOCK(); }