]> git.saurik.com Git - apt.git/blobdiff - ftparchive/writer.cc
check for length of Data to avoid the validness of
[apt.git] / ftparchive / writer.cc
index 650eec57c38dbe711d536d866bfea2ac8b83137b..58e32dade692810a8b0777ad415820d8fc3c1bc2 100644 (file)
@@ -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)