diff options
author | David Kalnischkies <kalnischkies@gmail.com> | 2010-08-19 00:10:25 +0200 |
---|---|---|
committer | David Kalnischkies <kalnischkies@gmail.com> | 2010-08-19 00:10:25 +0200 |
commit | 754b55091a75ddf3be5bf39df0c5021ff3e567e0 (patch) | |
tree | 3cad60f1e387595b6056e5a9011e576781bfdc0a /ftparchive/writer.cc | |
parent | 4368851d55589a55fc10ff347890d8bbf33ee002 (diff) |
* ftparchive/writer.cc:
- init valid-until correctly to prevent garbage entering Release file
Diffstat (limited to 'ftparchive/writer.cc')
-rw-r--r-- | ftparchive/writer.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ftparchive/writer.cc b/ftparchive/writer.cc index 650eec57c..58e32dade 100644 --- a/ftparchive/writer.cc +++ b/ftparchive/writer.cc @@ -925,7 +925,7 @@ ReleaseWriter::ReleaseWriter(string const &DB) } time_t const validuntil = now + _config->FindI("APT::FTPArchive::Release::ValidTime", 0); - char validstr[128]; + char validstr[128] = ""; if (now == validuntil || strftime(validstr, sizeof(validstr), "%a, %d %b %Y %H:%M:%S UTC", gmtime(&validuntil)) == 0) |