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

@ -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