Просмотр исходного кода

* ftparchive/writer.cc:
- null the valid string instead of the date if Valid-Until is not set

David Kalnischkies лет назад: 16
Родитель
Сommit
cdb623ed0b
2 измененных файлов с 10 добавлено и 2 удалено
  1. 8 0
      debian/changelog
  2. 2 2
      ftparchive/writer.cc

+ 8 - 0
debian/changelog

@@ -1,3 +1,11 @@
+apt (0.8.4) UNRELEASED; urgency=low
+
+  [ David Kalnischkies ]
+  * ftparchive/writer.cc:
+    - null the valid string instead of the date if Valid-Until is not set
+
+ -- David Kalnischkies <kalnischkies@gmail.com>  Thu, 09 Sep 2010 11:25:54 +0200
+
 apt (0.8.3) unstable; urgency=low
 
   [ Manpages translations ]

+ 2 - 2
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<string,string> Fields;