S
Slain
By mistake I passed a pointer not initialized to a method. This method
explicitly checks for NULL pointer and returns if that is the case.
It seems that I still bypassed this check. Here is what I am trying to
do
func1(.., A *aa)
{
if (aa == NULL)
return 0;
:
:
}
When I print aa using gdb in that section, I get the output as
(A*) 0x0
I assume that I should have just returned when func1 saw aa to be
NULL, but I crashed later on in func1()
Any ideas?
Thanks
explicitly checks for NULL pointer and returns if that is the case.
It seems that I still bypassed this check. Here is what I am trying to
do
func1(.., A *aa)
{
if (aa == NULL)
return 0;
:
:
}
When I print aa using gdb in that section, I get the output as
(A*) 0x0
I assume that I should have just returned when func1 saw aa to be
NULL, but I crashed later on in func1()
Any ideas?
Thanks