Skip to content

Commit

Permalink
Remove duplicate __set_errno call in random_r.c.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrich Drepper committed Oct 8, 2009
1 parent 1219ddf commit 1abedcd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
6 changes: 2 additions & 4 deletions stdlib/random_r.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1abedcd

Please sign in to comment.