BZ#15380: Fix initstate error return

Roland McGrath roland@hack.frob.com
Mon Apr 29 19:12:00 GMT 2013


> 2013-04-27  Andreas Jaeger  <aj@suse.de>
> 
> 	[BZ #15380]
> 	* stdlib/random.c (weak_alias): Return NULL if
> 	__initstate fails.

C-x 4 a failure inside the parens.

> -  return (char *) ostate;
> +  return (ret == -1) ? NULL : (char *) ostate;

No need for those parens.

Otherwise fine.


Thanks,
Roland



More information about the Libc-alpha mailing list