freopen(3): prevent uninitialized errno.
Revert completley r297408 (and r297407): this ends up touching errno, which we are not allowed to do. Pointed out by: ache, bde
This commit is contained in:
parent
0d88b46e6f
commit
743d44200e
@ -78,7 +78,6 @@ freopen(const char * __restrict file, const char * __restrict mode,
|
||||
* re-open the same file with a different mode. We allow this only
|
||||
* if the modes are compatible.
|
||||
*/
|
||||
sverrno = 0;
|
||||
if (file == NULL) {
|
||||
/* See comment below regarding freopen() of closed files. */
|
||||
if (fp->_flags == 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user