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,7 +1139,8 @@ rt_err_t rt_event_recv(rt_event_t event,
if (status == RT_EOK)
{
/* set received event */
*recved = (event->set & set);
if (recved)
*recved = (event->set & set);
/* received event */
if (option & RT_EVENT_FLAG_CLEAR)