From 3d52d2a9ca397b84c4c4f2fddf79cbe90c5db041 Mon Sep 17 00:00:00 2001 From: Dragos Oancea Date: Thu, 14 Nov 2019 07:28:23 +0000 Subject: [PATCH] [core] scan-build: Dead assignment. Value stored to 'p' is never read --- src/switch_stun.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/switch_stun.c b/src/switch_stun.c index b60a3cd5ea..6149ac3dc3 100644 --- a/src/switch_stun.c +++ b/src/switch_stun.c @@ -884,9 +884,6 @@ SWITCH_DECLARE(switch_status_t) switch_stun_ip_lookup(char **external_ip, const stun_port = (switch_port_t)iport; } } - else { - p = stun_ip; - } switch_find_local_ip(ip_buf, sizeof(ip_buf), NULL, AF_INET);