summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mdk-stage1/dietlibc/libstdio/fdglue.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mdk-stage1/dietlibc/libstdio/fdglue.c b/mdk-stage1/dietlibc/libstdio/fdglue.c
index eeedd513d..1c3918f1f 100644
--- a/mdk-stage1/dietlibc/libstdio/fdglue.c
+++ b/mdk-stage1/dietlibc/libstdio/fdglue.c
@@ -36,6 +36,9 @@ FILE* __stdio_init_file(int fd) {
tmp->bm=0;
tmp->bs=0;
#endif
+#ifdef WANT_UNGETC
+ tmp->ungotten = 0;
+#endif
tmp->flags=0;
#ifdef WANT_BUFFERED_STDIO
if (__stdio_atexit==0) {