Initialize the struct url_stat at the beginning of _fetch_stat_file().
This commit is contained in:
parent
e03983a32c
commit
7a5b4b1ba6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=60584
@ -82,6 +82,8 @@ _fetch_stat_file(char *fn, struct url_stat *us)
|
||||
{
|
||||
struct stat sb;
|
||||
|
||||
us->size = -1;
|
||||
us->atime = us->mtime = 0;
|
||||
if (stat(fn, &sb) == -1) {
|
||||
_fetch_syserr();
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user