]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/contrib/cmndline.cc
Merge remote-tracking branch 'upstream/debian/sid' into feature/source-deb822
[apt.git] / apt-pkg / contrib / cmndline.cc
index 8cef8036872d38021760497580403ada8931c148..2086d91ca88b10b68f8697e3b2aa4580ee999753 100644 (file)
@@ -397,6 +397,7 @@ bool CommandLine::DispatchArg(Dispatch *Map,bool NoMatch)
 void CommandLine::SaveInConfig(unsigned int const &argc, char const * const * const argv)
 {
    char cmdline[100 + argc * 50];
+   memset(cmdline, 0, sizeof(cmdline));
    unsigned int length = 0;
    bool lastWasOption = false;
    bool closeQuote = false;