summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorJeremie Courreges-Anglas <jca@cvs.openbsd.org>2020-06-20 09:59:49 +0000
committerJeremie Courreges-Anglas <jca@cvs.openbsd.org>2020-06-20 09:59:49 +0000
commitf274ed296e97101fcc26b22e9fa760b4143a444a (patch)
tree79ff6fe23caf2f91e7f0dfbd0e9ba18b64374098 /usr.bin
parent84f28636daf9aeffcea2d989a9a44743f2ab7268 (diff)
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;