mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-01-03 11:30:53 +00:00
Don't do the debug printout if ipaddr is NULL
This commit is contained in:
parent
990682229c
commit
d21835a61f
@ -1380,7 +1380,8 @@ resolv_lookup(const char *name, uip_ipaddr_t ** ipaddr)
|
|||||||
|
|
||||||
#if VERBOSE_DEBUG
|
#if VERBOSE_DEBUG
|
||||||
switch (ret) {
|
switch (ret) {
|
||||||
case RESOLV_STATUS_CACHED:{
|
case RESOLV_STATUS_CACHED:
|
||||||
|
if(ipaddr) {
|
||||||
PRINTF("resolver: Found \"%s\" in cache.\n", name);
|
PRINTF("resolver: Found \"%s\" in cache.\n", name);
|
||||||
const uip_ipaddr_t *addr = *ipaddr;
|
const uip_ipaddr_t *addr = *ipaddr;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user