]> git.saurik.com Git - apt.git/blobdiff - ftparchive/writer.cc
evaluate Acquire::Languages= before LANG= (Closes: #602573)
[apt.git] / ftparchive / writer.cc
index c280f5ed364b5293b36162a665858b7407783bd9..d7d699ddc8a0e63bc7948b8da278e7fa66862e50 100644 (file)
@@ -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;