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.
        • ... Martin Bähr
        • ... Arne Goedeke
        • ... Martin Bähr
        • ... Arne Goedeke
        • ... Martin Bähr
        • ... Arne Goedeke
        • ... Martin Bähr
        • ... Martin Baehr
        • ... Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum
    • ... Martin Bähr
  • Re:... Martin Bähr

Reply via email to