From: David Kalnischkies Date: Wed, 18 Aug 2010 22:10:25 +0000 (+0200) Subject: * ftparchive/writer.cc: X-Git-Tag: 0.8.0^2~1^2~5 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/754b55091a75ddf3be5bf39df0c5021ff3e567e0 * ftparchive/writer.cc: - init valid-until correctly to prevent garbage entering Release file --- diff --git a/debian/changelog b/debian/changelog index 91300e10c..ecd1b24d1 100644 --- a/debian/changelog +++ b/debian/changelog @@ -9,8 +9,10 @@ apt (0.8.0~pre2) UNRELEASED; urgency=low - create backups for our extended_states file (Closes: #593430) * apt-pkg/init.cc: - set the default values for dir::etc::trusted options correctly + * ftparchive/writer.cc: + - init valid-until correctly to prevent garbage entering Release file - -- David Kalnischkies Thu, 19 Aug 2010 00:01:30 +0200 + -- David Kalnischkies Thu, 19 Aug 2010 00:09:00 +0200 apt (0.8.0~pre1) experimental; urgency=low 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)