mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-01-04 18:31:32 +00:00
Check pointer in uip_debug_lladdr_print
This commit is contained in:
parent
e762d7eb50
commit
60784b40bd
@ -75,6 +75,10 @@ void
|
|||||||
uip_debug_lladdr_print(const uip_lladdr_t *addr)
|
uip_debug_lladdr_print(const uip_lladdr_t *addr)
|
||||||
{
|
{
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
|
if(addr == NULL) {
|
||||||
|
printf("(NULL LL addr)");
|
||||||
|
return;
|
||||||
|
}
|
||||||
for(i = 0; i < sizeof(uip_lladdr_t); i++) {
|
for(i = 0; i < sizeof(uip_lladdr_t); i++) {
|
||||||
if(i > 0) {
|
if(i > 0) {
|
||||||
PRINTA(":");
|
PRINTA(":");
|
||||||
|
Loading…
Reference in New Issue
Block a user