summaryrefslogtreecommitdiff
path: root/ftparchive/writer.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2010-09-10 13:32:52 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2010-09-10 13:32:52 +0200
commit1244ef2b9e0c35c0aa263e6740ca153e5800e7d6 (patch)
tree8dcbbed4d0ac54d9db3937a75b1301245b014b1b /ftparchive/writer.cc
parentd674bb1d1a8e561ccedab9145dd58d34df68a66e (diff)
parent2493f4b5dfa4b4d7fcaa944e9fd4bd2573ae3ec1 (diff)
merged from debian-sid
Diffstat (limited to 'ftparchive/writer.cc')
-rw-r--r--ftparchive/writer.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ftparchive/writer.cc b/ftparchive/writer.cc
index c280f5ed3..d7d699ddc 100644
--- a/ftparchive/writer.cc
+++ b/ftparchive/writer.cc
@@ -928,12 +928,12 @@ 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)
{
- datestr[0] = '\0';
+ validstr[0] = '\0';
}
map<string,string> Fields;