summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/stdio/freopen.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/libc/stdio/freopen.c b/lib/libc/stdio/freopen.c
index 8138a6b..e0104c8 100644
--- a/lib/libc/stdio/freopen.c
+++ b/lib/libc/stdio/freopen.c
@@ -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) {
OpenPOWER on IntegriCloud