diff --git a/src/rx/rx_event.c b/src/rx/rx_event.c index 6638e5be60..c3fb672232 100644 --- a/src/rx/rx_event.c +++ b/src/rx/rx_event.c @@ -126,8 +126,8 @@ rxevent_alloc(void) { mrec->next = freeEvents.mallocs; freeEvents.mallocs = mrec; MUTEX_EXIT(&freeEvents.lock); -#endif ev = &evlist[0]; +#endif } else { ev = opr_queue_First(&freeEvents.list, struct rxevent, q); opr_queue_Remove(&ev->q);