This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
duplicate call to __set_errno in __initstate_r
- From: Steve Ward <planet36 at gmail dot com>
- To: libc-help at sourceware dot org
- Date: Thu, 1 Oct 2009 23:04:45 -0400
- Subject: duplicate call to __set_errno in __initstate_r
There is a duplicate call to __set_errno in function __initstate_r in
file random_r.c.
After the label "fail", there is already a call to __set_errno.
Steve
diff --git a/stdlib/random_r.c b/stdlib/random_r.c
index a30055f..160a0b9 100644
--- a/stdlib/random_r.c
+++ b/stdlib/random_r.c
@@ -256,7 +256,6 @@ __initstate_r (seed, arg_state, n, buf)
{
if (n < BREAK_0)
{
- __set_errno (EINVAL);
goto fail;
}
type = TYPE_0;