diff options
author | des <des@FreeBSD.org> | 2000-05-15 08:24:58 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2000-05-15 08:24:58 +0000 |
commit | ffd6fec6c030f09835e7ec783cde167b41d51cd0 (patch) | |
tree | 260a57f3893e764a80a8cb2bc7249efa72ddaf29 | |
parent | 23a4c9053bfb468fac35a5c42ae561b0c90278d0 (diff) | |
download | FreeBSD-src-ffd6fec6c030f09835e7ec783cde167b41d51cd0.zip FreeBSD-src-ffd6fec6c030f09835e7ec783cde167b41d51cd0.tar.gz |
Initialize the struct url_stat at the beginning of fetchStatFTP().
-rw-r--r-- | lib/libfetch/ftp.c | 3 |
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; |