"Mark Cave-Ayland" <m(dot)cave-ayland(at)webbased(dot)co(dot)uk> writes:
> (gdb) print cur
> $2 = (BOX *) 0x7f7f7f7e
> Looking at the pointers, the value for cur looks quite suspicious ;)
Yeah, it's been taken from memory that's not been initialized, or has
already been pfree'd. In other words the caller is at fault, not this
subroutine. Can't say much more than that though.
regards, tom lane