This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: BZ#15380: Fix initstate error return
- From: Roland McGrath <roland at hack dot frob dot com>
- To: Andreas Jaeger <aj at suse dot com>
- Cc: libc-alpha <libc-alpha at sourceware dot org>
- Date: Mon, 29 Apr 2013 09:33:25 -0700 (PDT)
- Subject: Re: BZ#15380: Fix initstate error return
- References: <517BE7B5 dot 7070405 at suse dot com>
> 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