Re: [RFA] Ensure result of make_cleanup is never NULL.

Pedro Alves
2012-04-18T09:16:20Z

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