summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbcook <bcook@openbsd.org>2016-09-03 17:35:34 +0000
committerbcook <bcook@openbsd.org>2016-09-03 17:35:34 +0000
commit1bd930815c36e3ec71f706086e262d28c8bbf97e (patch)
tree0868efe03606715f71a0352c44c7bcaeecf64275
parentswitch to a constant-time gather procedure for amd64 mont5 asm (diff)
downloadwireguard-openbsd-1bd930815c36e3ec71f706086e262d28c8bbf97e.tar.xz
wireguard-openbsd-1bd930815c36e3ec71f706086e262d28c8bbf97e.zip
squash some possibly-used-uninitialized warnings
-rw-r--r--usr.bin/nc/netcat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/nc/netcat.c b/usr.bin/nc/netcat.c
index d30dd938f31..3af7d503748 100644
--- a/usr.bin/nc/netcat.c
+++ b/usr.bin/nc/netcat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: netcat.c,v 1.162 2016/08/13 13:09:10 jsing Exp $ */
+/* $OpenBSD: netcat.c,v 1.163 2016/09/03 17:35:34 bcook Exp $ */
/*
* Copyright (c) 2001 Eric Jackson <ericj@monkey.org>
* Copyright (c) 2015 Bob Beck. All rights reserved.
@@ -825,7 +825,7 @@ int
remote_connect(const char *host, const char *port, struct addrinfo hints)
{
struct addrinfo *res, *res0;
- int s, error, on = 1, save_errno;
+ int s = -1, error, on = 1, save_errno;
if ((error = getaddrinfo(host, port, &hints, &res0)))
errx(1, "getaddrinfo: %s", gai_strerror(error));
@@ -911,7 +911,7 @@ int
local_listen(char *host, char *port, struct addrinfo hints)
{
struct addrinfo *res, *res0;
- int s, ret, x = 1, save_errno;
+ int s = -1, ret, x = 1, save_errno;
int error;
/* Allow nodename to be null. */