mirror of
https://sourceware.org/git/glibc.git
synced 2025-06-15 06:41:47 +03:00
Remove duplicate __set_errno call in random_r.c.
This commit is contained in:
@ -1,5 +1,9 @@
|
|||||||
2009-10-08 Ulrich Drepper <drepper@redhat.com>
|
2009-10-08 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
[BZ #10730]
|
||||||
|
* stdlib/random_r.c (__initstate_r): Remove duplicate __set-errno.
|
||||||
|
Patch in part by Steve Ward <planet36@gmail.com>.
|
||||||
|
|
||||||
[BZ #10731]
|
[BZ #10731]
|
||||||
* stdlib/rand_r.c: Fix typo.
|
* stdlib/rand_r.c: Fix typo.
|
||||||
|
|
||||||
|
@ -255,10 +255,8 @@ __initstate_r (seed, arg_state, n, buf)
|
|||||||
else if (n < BREAK_1)
|
else if (n < BREAK_1)
|
||||||
{
|
{
|
||||||
if (n < BREAK_0)
|
if (n < BREAK_0)
|
||||||
{
|
goto fail;
|
||||||
__set_errno (EINVAL);
|
|
||||||
goto fail;
|
|
||||||
}
|
|
||||||
type = TYPE_0;
|
type = TYPE_0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user