Comparing array address with 0 is not useful, use strlen() instead

This commit is contained in:
Chocobo1 2015-06-24 14:42:12 +08:00
parent 61289d42fb
commit 24307d2951
1 changed files with 1 additions and 1 deletions

View File

@ -185,7 +185,7 @@ OpenAndConfSSDPReceiveSocket(int ipv6)
{
syslog(LOG_WARNING,
"Failed to add multicast membership for interface %s",
lan_addr->str ? lan_addr->str : "NULL");
strlen(lan_addr->str) ? lan_addr->str : "NULL");
}
}
}