diff options
author | des <des@FreeBSD.org> | 2000-05-15 08:33:58 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2000-05-15 08:33:58 +0000 |
commit | 5d01e7fd741b47ba2507150b88db9f5e11e9a97a (patch) | |
tree | e4b20a6b8fb95fb30a118345d7bab64f89150c52 | |
parent | d529a5a010ba9d7f59c6b4e22c4aaaf15746eee5 (diff) | |
download | FreeBSD-src-5d01e7fd741b47ba2507150b88db9f5e11e9a97a.zip FreeBSD-src-5d01e7fd741b47ba2507150b88db9f5e11e9a97a.tar.gz |
Initialize the struct url_stat at the beginning of _fetch_stat_file().
-rw-r--r-- | lib/libfetch/file.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libfetch/file.c b/lib/libfetch/file.c index d709e54..0da44c9 100644 --- a/lib/libfetch/file.c +++ b/lib/libfetch/file.c @@ -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; |