1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-06-13 19:21:36 +03:00

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

View File

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