summaryrefslogtreecommitdiffstats
path: root/lib/libfetch
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2000-05-15 08:24:58 +0000
committerdes <des@FreeBSD.org>2000-05-15 08:24:58 +0000
commitffd6fec6c030f09835e7ec783cde167b41d51cd0 (patch)
tree260a57f3893e764a80a8cb2bc7249efa72ddaf29 /lib/libfetch
parent23a4c9053bfb468fac35a5c42ae561b0c90278d0 (diff)
downloadFreeBSD-src-ffd6fec6c030f09835e7ec783cde167b41d51cd0.zip
FreeBSD-src-ffd6fec6c030f09835e7ec783cde167b41d51cd0.tar.gz
Initialize the struct url_stat at the beginning of fetchStatFTP().
Diffstat (limited to 'lib/libfetch')
-rw-r--r--lib/libfetch/ftp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libfetch/ftp.c b/lib/libfetch/ftp.c
index 0e13bf5..fab45f5 100644
--- a/lib/libfetch/ftp.c
+++ b/lib/libfetch/ftp.c
@@ -532,6 +532,9 @@ fetchStatFTP(struct url *url, struct url_stat *us, char *flags)
time_t t;
int e, cd;
+ us->size = -1;
+ us->atime = us->mtime = 0;
+
/* connect to server */
if ((cd = _ftp_cached_connect(url, flags)) == NULL)
return -1;
OpenPOWER on IntegriCloud