Initialize the struct url_stat at the beginning of fetchStatFTP().
This commit is contained in:
parent
f8f4130b77
commit
0669702c01
@ -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…
x
Reference in New Issue
Block a user