diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2012-03-26 10:43:06 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2012-03-26 10:43:06 +0000 |
commit | 33c789303fcd9f8a6631218e4241947b6f5d7579 (patch) | |
tree | 74315f67a6b85a8ad31e47165c452e2c6d1a8d6d /newlib/libc/stdio/findfp.c | |
parent | b54d64de05084f38af3e475c70d50aa3966cbc2e (diff) | |
download | cygnal-33c789303fcd9f8a6631218e4241947b6f5d7579.tar.gz cygnal-33c789303fcd9f8a6631218e4241947b6f5d7579.tar.bz2 cygnal-33c789303fcd9f8a6631218e4241947b6f5d7579.zip |
* libc/stdio/findfp.c (__sinit): Set __sdidinit last.
Diffstat (limited to 'newlib/libc/stdio/findfp.c')
-rw-r--r-- | newlib/libc/stdio/findfp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/newlib/libc/stdio/findfp.c b/newlib/libc/stdio/findfp.c index 570fd457e..d81241434 100644 --- a/newlib/libc/stdio/findfp.c +++ b/newlib/libc/stdio/findfp.c @@ -192,7 +192,6 @@ _DEFUN(__sinit, (s), /* make sure we clean up on exit */ s->__cleanup = _cleanup_r; /* conservative */ - s->__sdidinit = 1; s->__sglue._next = NULL; #ifndef _REENT_SMALL @@ -224,6 +223,8 @@ _DEFUN(__sinit, (s), when the underlying fd 2 is write-only. */ std (s->_stderr, __SRW | __SNBF, 2, s); + s->__sdidinit = 1; + __sinit_lock_release (); } |