From cdb623ed0bcdf847544a20c0b3924ff129d85746 Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Thu, 9 Sep 2010 11:26:18 +0200 Subject: * ftparchive/writer.cc: - null the valid string instead of the date if Valid-Until is not set --- ftparchive/writer.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ftparchive') diff --git a/ftparchive/writer.cc b/ftparchive/writer.cc index 58e32dade..858e0d9df 100644 --- a/ftparchive/writer.cc +++ b/ftparchive/writer.cc @@ -925,12 +925,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 Fields; -- cgit v1.2.3