I have a complex, nested struct. Under certain conditions,
some pointers in that struct may become bad, and
memory access error occurs.
The name of the struct is pSeg, and now I just do
if ( ! pSeg ) return;
but that doesn't protect me from, let's say, pSeg->Line being inaccessible.
How do I verify the struct and its members before trying
to access it?