allow parameter "recved" can be null in function "rt_event_recv"

This commit is contained in:
pathletboy 2015-11-21 20:55:41 +08:00
parent 086e1bd9cb
commit 5b03e37ae1
1 changed files with 2 additions and 1 deletions

View File

@ -1139,6 +1139,7 @@ rt_err_t rt_event_recv(rt_event_t event,
if (status == RT_EOK) if (status == RT_EOK)
{ {
/* set received event */ /* set received event */
if (recved)
*recved = (event->set & set); *recved = (event->set & set);
/* received event */ /* received event */