mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +00:00
Perform inconsequential code cleanup
This commit is contained in:
parent
929478c524
commit
decf216655
52 changed files with 326 additions and 442 deletions
|
@ -47,7 +47,7 @@ int fclose(FILE *f) {
|
|||
f->state = EOF;
|
||||
if (f->noclose) {
|
||||
f->fd = -1;
|
||||
} else if (close(f->fd) == -1) {
|
||||
} else if (f->fd != -1 && close(f->fd) == -1) {
|
||||
f->state = errno;
|
||||
}
|
||||
if (f->state == EOF) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue