projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix integer overflow in WIFSTOPPED macro
[musl]
/
src
/
stdio
/
freopen.c
diff --git
a/src/stdio/freopen.c
b/src/stdio/freopen.c
index
615d4b4
..
1641a4c
100644
(file)
--- a/
src/stdio/freopen.c
+++ b/
src/stdio/freopen.c
@@
-40,6
+40,8
@@
FILE *freopen(const char *restrict filename, const char *restrict mode, FILE *re
fclose(f2);
}
fclose(f2);
}
+ f->mode = 0;
+ f->locale = 0;
FUNLOCK(f);
return f;
FUNLOCK(f);
return f;
@@
-49,5
+51,3
@@
fail:
fclose(f);
return NULL;
}
fclose(f);
return NULL;
}
-
-weak_alias(freopen, freopen64);