From 24307d2951f3280d53bf249e484726ccfa9b581d Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Wed, 24 Jun 2015 14:42:12 +0800 Subject: [PATCH] Comparing array address with 0 is not useful, use strlen() instead --- miniupnpd/minissdp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miniupnpd/minissdp.c b/miniupnpd/minissdp.c index a85349b..0aeb122 100644 --- a/miniupnpd/minissdp.c +++ b/miniupnpd/minissdp.c @@ -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"); } } }