summaryrefslogtreecommitdiff
path: root/ftparchive/writer.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2010-08-23 18:56:03 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2010-08-23 18:56:03 +0200
commitea479d9490c9bab63b13ace7a7cca4e0a4a6611d (patch)
tree890973d4e2c0104ed58fb9d31b2e7194b76c6568 /ftparchive/writer.cc
parent9349f80796a4b0be3ce2e732029ddd4a6558f80a (diff)
parentf213b6ea7397f2ba5b770e1a30e57dc8438bf61e (diff)
merged from lp:~donkult/apt/sid
Diffstat (limited to 'ftparchive/writer.cc')
-rw-r--r--ftparchive/writer.cc2
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)