This is the mail archive of the libc-alpha@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]

Re: BZ#15380: Fix initstate error return


> 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


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