This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/25636] cc1 and cc1plus --help core
- From: "pinskia at physics dot uc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Jan 2006 01:50:49 -0000
- Subject: [Bug middle-end/25636] cc1 and cc1plus --help core
- References: <bug-25636-11951@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #10 from pinskia at gcc dot gnu dot org 2006-01-16 01:50 -------
Subject: Re: cc1 and cc1plus --help core
On Jan 15, 2006, at 8:48 PM, drab at kepler dot fjfi dot cvut dot cz
wrote:
>
>
> ------- Comment #9 from drab at kepler dot fjfi dot cvut dot cz
> 2006-01-16 01:48 -------
> OK, so how about this, couldn't this be an issue?
>
> --- opts.c.old 2006-01-15 23:36:53.000000000 +0100
> +++ opts.c 2006-01-16 02:48:17.000000000 +0100
> @@ -1291,7 +1291,7 @@ print_filtered_help (unsigned int flag)
> unsigned int i, len, filter, indent = 0;
> bool duplicates = false;
> const char *help, *opt, *tab;
> - static char *printed;
> + static char *printed = NULL;
>
No because static variables are initialized to 0 by default by the C
standard.
-- Pinski
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25636