1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00

lib/adnss: clang: Fix The left operand of '!=' is a garbage value

Fixes:

lib/addns/dnssock.c:143:3: warning: The left operand of '!=' is a garbage value <--[clang]
                TALLOC_FREE(conn);
                ^
1 warning generated.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
This commit is contained in:
Noel Power 2019-07-09 14:08:49 +00:00 committed by Gary Lockyer
parent 90e36ef729
commit 849ffbc825

View File

@ -125,7 +125,7 @@ static DNS_ERROR dns_udp_open( const char *nameserver,
{
struct addrinfo hints;
struct sockaddr_storage RecvAddr;
struct dns_connection *conn;
struct dns_connection *conn = NULL;
DNS_ERROR dns_ret;
socklen_t RecvAddrLen;
char service[16];