Added NULL pointer guards
This commit is contained in:
parent
0a8183d295
commit
0cd2f48d6e
6 changed files with 85 additions and 6 deletions
|
@ -70,7 +70,9 @@ recv_from_abc(struct abc_conn *bc)
|
|||
PRINTF("%d.%d: broadcast: from %d.%d\n",
|
||||
rimeaddr_node_addr.u8[0],rimeaddr_node_addr.u8[1],
|
||||
sender.u8[0], sender.u8[1]);
|
||||
c->u->recv(c, &sender);
|
||||
if(c->u->recv) {
|
||||
c->u->recv(c, &sender);
|
||||
}
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
static void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue