From 7a5b4b1ba626eb086c127279f31d2f6e76a8db53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Mon, 15 May 2000 08:33:58 +0000 Subject: [PATCH] Initialize the struct url_stat at the beginning of _fetch_stat_file(). --- lib/libfetch/file.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/libfetch/file.c b/lib/libfetch/file.c index d709e5415daa..0da44c9d5fa3 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;