mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-25 09:12:24 +00:00
resolve (no real impact) issue found by cppcheck:
[windows/winnet.c:589]: (error) Uninitialized variable: err
This commit is contained in:
parent
3f2df8cc9d
commit
02043ec5ac
@ -548,7 +548,7 @@ SockAddr sk_namelookup(const char *host, char **canonicalname,
|
|||||||
|
|
||||||
if ((a = p_inet_addr(host)) == (unsigned long) INADDR_NONE) {
|
if ((a = p_inet_addr(host)) == (unsigned long) INADDR_NONE) {
|
||||||
struct hostent *h = NULL;
|
struct hostent *h = NULL;
|
||||||
int err;
|
int err = 0;
|
||||||
#ifndef NO_IPV6
|
#ifndef NO_IPV6
|
||||||
/*
|
/*
|
||||||
* Use getaddrinfo when it's available
|
* Use getaddrinfo when it's available
|
||||||
|
Loading…
Reference in New Issue
Block a user