of the ->nextevent linkage. * td_ta_event_getmsg.c (td_ta_event_getmsg): Runtime error instead of assert for reading TD_EVENT_NONE. Clear the event buffer after reading it. Add a sanity check for foo->nextevent = foo.