From ebab867710aec8a001c5243cdd075e1355996d02 Mon Sep 17 00:00:00 2001 From: Andrey Volk Date: Sat, 15 Feb 2020 23:51:29 +0400 Subject: [PATCH] [libnatpmp] scan-build: The left operand of '!=' is a garbage value --- libs/libnatpmp/natpmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/libnatpmp/natpmp.c b/libs/libnatpmp/natpmp.c index e3ab64af7d..0e2c4ea0b4 100644 --- a/libs/libnatpmp/natpmp.c +++ b/libs/libnatpmp/natpmp.c @@ -195,7 +195,7 @@ int sendnewportmappingrequest(natpmp_t * p, int protocol, int readnatpmpresponse(natpmp_t * p, natpmpresp_t * response) { unsigned char buf[16]; - struct sockaddr_in addr; + struct sockaddr_in addr = {0}; socklen_t addrlen = sizeof(addr); int n; if(!p)