From 0669702c014873e2018539a5089f06a768b51f56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Mon, 15 May 2000 08:24:58 +0000 Subject: Initialize the struct url_stat at the beginning of fetchStatFTP(). --- lib/libfetch/ftp.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/libfetch/ftp.c') diff --git a/lib/libfetch/ftp.c b/lib/libfetch/ftp.c index 0e13bf59039e..fab45f5ceff8 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; -- cgit v1.2.3