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

This commit is contained in:
Dag-Erling Smørgrav 2000-05-15 08:33:58 +00:00
parent e03983a32c
commit 7a5b4b1ba6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=60584

View File

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