]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[libnatpmp] scan-build: The left operand of '!=' is a garbage value 367/head
authorAndrey Volk <andywolk@gmail.com>
Sat, 15 Feb 2020 19:51:29 +0000 (23:51 +0400)
committerAndrey Volk <andywolk@gmail.com>
Sat, 15 Feb 2020 19:51:29 +0000 (23:51 +0400)
libs/libnatpmp/natpmp.c

index e3ab64af7dd7cd89cc50c2eb493777926d96d033..0e2c4ea0b49ea2d7d2d41ae0bc4bec7994e250b4 100644 (file)
@@ -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)