On Wed, May 22, 2013 at 10:48:04AM +0200, Arne Goedeke wrote:
In your code callback can be NULL. You therefore need to check ctx->callback before you dereference it. Something like if (ctx->callback && TYPEOF(*ctx->callback) == PIKE_T_FUNCTION) should take care of the segfault.
pebkac, i know i tried testing for NULL, but probably when i did that i missed the * and made the wrong conclusion on the error.
thanks. it does indeed work now!
greetings, martin.