* libc/stdio/findfp.c (__sinit): Set __sdidinit last.

This commit is contained in:
Corinna Vinschen 2012-03-26 10:43:06 +00:00
parent b54d64de05
commit 33c789303f
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2012-03-26 Corinna Vinschen <vinschen@redhat.com>
* libc/stdio/findfp.c (__sinit): Set __sdidinit last.
2012-03-09 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/machine/setjmp-dj.h: Modify license to include

View File

@ -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 ();
}