Fix UB pointer comparison in event.c