Added NULL pointer guards

This commit is contained in:
Adam Dunkels 2012-11-22 11:55:01 +01:00
parent 0a8183d295
commit 0cd2f48d6e
6 changed files with 85 additions and 6 deletions

View file

@ -93,7 +93,9 @@ abc_input(struct channel *channel)
rimeaddr_node_addr.u8[0],rimeaddr_node_addr.u8[1],
channel->channelno);
c->u->recv(c);
if(c->u->recv) {
c->u->recv(c);
}
}
/*---------------------------------------------------------------------------*/
void