summaryrefslogtreecommitdiffstats
path: root/lib/libfetch/file.c
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2000-05-15 08:33:58 +0000
committerdes <des@FreeBSD.org>2000-05-15 08:33:58 +0000
commit5d01e7fd741b47ba2507150b88db9f5e11e9a97a (patch)
treee4b20a6b8fb95fb30a118345d7bab64f89150c52 /lib/libfetch/file.c
parentd529a5a010ba9d7f59c6b4e22c4aaaf15746eee5 (diff)
downloadFreeBSD-src-5d01e7fd741b47ba2507150b88db9f5e11e9a97a.zip
FreeBSD-src-5d01e7fd741b47ba2507150b88db9f5e11e9a97a.tar.gz
Initialize the struct url_stat at the beginning of _fetch_stat_file().
Diffstat (limited to 'lib/libfetch/file.c')
-rw-r--r--lib/libfetch/file.c2
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;
OpenPOWER on IntegriCloud