summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index a9ccdde..d551cf0 100644
--- a/util.c
+++ b/util.c
@@ -100,7 +100,7 @@ char *addr2string(struct sockaddr *addr, socklen_t len) {
int connectport(int type, char *host, char *port) {
struct addrinfo hints, *res0, *res;
- int s;
+ int s = -1;
memset(&hints, 0, sizeof(hints));
hints.ai_socktype = type;