fix undefined call order in fclose, possible lost output depending on compiler
authorRich Felker <dalias@aerifal.cx>
Mon, 2 May 2011 02:59:14 +0000 (22:59 -0400)
committerRich Felker <dalias@aerifal.cx>
Mon, 2 May 2011 02:59:14 +0000 (22:59 -0400)
commitbd6746732536fdf2ebaadff6f98aee0879b1674d
treeb9d9898f3ed515416bed535aa74180933818d31f
parenta9be201cc0a2c04f430c029dd070fc0fbcd164b3
fix undefined call order in fclose, possible lost output depending on compiler

pcc turned up this bug by calling f->close(f) before fflush(f),
resulting in lost output and error on flush.
src/stdio/fclose.c