This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Variable scope issue in confstr
- From: "Carlos O'Donell" <carlos at systemhalted dot org>
- To: Allan McRae <allan at archlinux dot org>
- Cc: libc-alpha at sourceware dot org
- Date: Sun, 25 Mar 2012 10:01:01 -0400
- Subject: Re: Variable scope issue in confstr
- References: <4F6E8A3A.6010402@archlinux.org>
On Sat, Mar 24, 2012 at 11:00 PM, Allan McRae <allan@archlinux.org> wrote:
> In confstr (posix/confstr.c), the variable restenvs is defined within a
> swtich case block and then used outside the switch statement (via
> assignment to the variable string). ?Issues with this are exposed with
> gcc-4.7 and -O2.
>
>
> 2012-03-25 ?Allan McRae ?<allan@archlinux.org>
>
> ? ? ? ?* posix/confstr.c: fix variable scope issue.
What testing did you do?
Can we add a regression test for this please?
Cheers,
Carlos.