[RFA] Ensure result of make_cleanup is never NULL.
Pedro Alves
palves@redhat.com
Wed Apr 18 09:21:00 GMT 2012
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
More information about the Gdb-patches
mailing list