From 1b43fa85b5dc6dba6c58d4095b5e46f4edfe80b1 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Mon, 28 Apr 2014 15:19:19 -0400 Subject: [PATCH] remove useless variable --- src/switch_nat.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/switch_nat.c b/src/switch_nat.c index 12476e82d7..2b95f8b959 100644 --- a/src/switch_nat.c +++ b/src/switch_nat.c @@ -90,13 +90,12 @@ static int init_upnp(void) struct UPNPDev *trydev = NULL; char *descXML; int descXMLsize = 0; - const char *multicastif = 0; const char *minissdpdpath = switch_core_get_variable("local_ip_v4"); memset(&nat_globals.urls, 0, sizeof(struct UPNPUrls)); memset(&nat_globals.data, 0, sizeof(struct IGDdatas)); - devlist = upnpDiscover(3000, (multicastif?multicastif:0) , minissdpdpath, 0); + devlist = upnpDiscover(3000, NULL, minissdpdpath, 0); if (devlist) { dev = devlist;