Remove duplicate __set_errno call in random_r.c.

This commit is contained in:
Ulrich Drepper 2009-10-08 13:46:47 -07:00
parent 1219ddfe54
commit 1abedcdad2
2 changed files with 6 additions and 4 deletions

View File

@ -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.

View File

@ -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