This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Ensure result of make_cleanup is never NULL.
On 04/18/2012 02:05 AM, Joel Brobecker wrote:
>> btw, I thought about making cleanup_sentinel const here, for a bit of
>> extra robustness.
>
> Sounds like a good idea. And also, I was wondering if it made sense
> to initialize the sentinel struct to `{ 0 }', even if we do not
> actually access the contents of that specific struct instance?
Not really necessary. C does that implicitly to all uninitialized global variables.
--
Pedro Alves