This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]