Initialize the struct url_stat at the beginning of fetchStatFTP().
This commit is contained in:
parent
f8f4130b77
commit
0669702c01
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=60582
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user