> You could use a goto, but a less ugly change would be to move the ev
> handling into a function and call that iff ev is non-NULL.
Thanks, I'll rework it like this.
Regards,
Fabian Maurer