summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorjca <jca@openbsd.org>2020-06-20 09:59:48 +0000
committerjca <jca@openbsd.org>2020-06-20 09:59:48 +0000
commit3f8a9645bdc3df305e67134b05c52af3317a8076 (patch)
tree7fdf22fda9061b3c81bf072612392a4e0bc7a469 /usr.bin
parentbasic macro cleanup: .Fo for long .Fn lines, .Fa for struct fields, (diff)
downloadwireguard-openbsd-3f8a9645bdc3df305e67134b05c52af3317a8076.tar.xz
wireguard-openbsd-3f8a9645bdc3df305e67134b05c52af3317a8076.zip
Avoid one uninitialized warning in file_get()
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ftp/fetch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ftp/fetch.c b/usr.bin/ftp/fetch.c
index f69ed702140..615edffeb3e 100644
--- a/usr.bin/ftp/fetch.c
+++ b/usr.bin/ftp/fetch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fetch.c,v 1.194 2020/02/22 01:00:07 jca Exp $ */
+/* $OpenBSD: fetch.c,v 1.195 2020/06/20 09:59:48 jca Exp $ */
/* $NetBSD: fetch.c,v 1.14 1997/08/18 10:20:20 lukem Exp $ */
/*-
@@ -190,7 +190,7 @@ static int
file_get(const char *path, const char *outfile)
{
struct stat st;
- int fd, out, rval = -1, save_errno;
+ int fd, out = -1, rval = -1, save_errno;
volatile sig_t oldintr, oldinti;
const char *savefile;
char *buf = NULL, *cp;