-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 09/16/2009 05:16 PM, Stephen Gallagher wrote:
If you're memsetting handle, then you don't need to also explicitly set handle->async_ctx (or any of the other pointers) to NULL.
If Valgrind is later complaining that testing for NULL is an unitialized jump or move, that's a bug in Valgrind.
I know and my personal preference would be to just use calloc or memset and not enumerate the structure members. However, I'm fixing existing code which I'm not author of, so I felt I'd better adhere to the standards in the existing code.
Jakub