diff --git a/src/ipc.c b/src/ipc.c index 7f8f0668e5..8c12f701b0 100644 --- a/src/ipc.c +++ b/src/ipc.c @@ -1188,7 +1188,8 @@ rt_err_t rt_event_recv(rt_event_t event, level = rt_hw_interrupt_disable(); /* set received event */ - *recved = thread->event_set; + if (recved) + *recved = thread->event_set; } /* enable interrupt */