summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--stdlib/random_r.c6
2 files changed, 6 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 9d822d833b..fd39e40132 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/stdlib/random_r.c b/stdlib/random_r.c
index a30055f598..90a157f9c1 100644
--- a/stdlib/random_r.c
+++ b/stdlib/random_r.c
@@ -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