Initialize the struct url_stat at the beginning of fetchStatFTP().

This commit is contained in:
Dag-Erling Smørgrav 2000-05-15 08:24:58 +00:00
parent f8f4130b77
commit 0669702c01
1 changed files with 3 additions and 0 deletions

View File

@ -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;