mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-22 02:40:08 +00:00
Remove duplicate __set_errno call in random_r.c.
This commit is contained in:
parent
1219ddfe54
commit
1abedcdad2
@ -1,5 +1,9 @@
|
||||
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]
|
||||
* stdlib/rand_r.c: Fix typo.
|
||||
|
||||
|
@ -255,10 +255,8 @@ __initstate_r (seed, arg_state, n, buf)
|
||||
else if (n < BREAK_1)
|
||||
{
|
||||
if (n < BREAK_0)
|
||||
{
|
||||
__set_errno (EINVAL);
|
||||
goto fail;
|
||||
}
|
||||
goto fail;
|
||||
|
||||
type = TYPE_0;
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user