1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 09:58:01 +00:00

resolve (no real impact) issue found by cppcheck:

[windows/winnet.c:589]: (error) Uninitialized variable: err
This commit is contained in:
Ilya Shipitsin 2017-06-20 09:36:07 +05:00
parent 3f2df8cc9d
commit 02043ec5ac

View File

@ -548,7 +548,7 @@ SockAddr sk_namelookup(const char *host, char **canonicalname,
if ((a = p_inet_addr(host)) == (unsigned long) INADDR_NONE) {
struct hostent *h = NULL;
int err;
int err = 0;
#ifndef NO_IPV6
/*
* Use getaddrinfo when it's available