From 02043ec5ace4985fc35fef8b5d6543a871ccab3c Mon Sep 17 00:00:00 2001 From: Ilya Shipitsin Date: Tue, 20 Jun 2017 09:36:07 +0500 Subject: [PATCH] resolve (no real impact) issue found by cppcheck: [windows/winnet.c:589]: (error) Uninitialized variable: err --- windows/winnet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows/winnet.c b/windows/winnet.c index ea950bba..e2edc87a 100644 --- a/windows/winnet.c +++ b/windows/winnet.c @@ -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