This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch, master, updated. glibc-2.10-355-g1abedcd
- From: drepper at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 8 Oct 2009 20:47:16 -0000
- Subject: GNU C Library master sources branch, master, updated. glibc-2.10-355-g1abedcd
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via 1abedcdad2eef3d262c115ac13f069900338727c (commit)
from 1219ddfe549429272b327c020a6b3d91120a8e16 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=1abedcdad2eef3d262c115ac13f069900338727c
commit 1abedcdad2eef3d262c115ac13f069900338727c
Author: Ulrich Drepper <drepper@redhat.com>
Date: Thu Oct 8 13:46:47 2009 -0700
Remove duplicate __set_errno call in random_r.c.
diff --git a/ChangeLog b/ChangeLog
index 9d822d8..fd39e40 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 a30055f..90a157f 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
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 4 ++++
stdlib/random_r.c | 6 ++----
2 files changed, 6 insertions(+), 4 deletions(-)
hooks/post-receive
--
GNU C Library master sources