Remove duplicate __set_errno call in random_r.c.
authorUlrich Drepper <drepper@redhat.com>
Thu, 8 Oct 2009 20:46:47 +0000 (13:46 -0700)
committerUlrich Drepper <drepper@redhat.com>
Thu, 8 Oct 2009 20:46:47 +0000 (13:46 -0700)
ChangeLog
stdlib/random_r.c

index 9d822d8..fd39e40 100644 (file)
--- 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.
 
index a30055f..90a157f 100644 (file)
@@ -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