summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/cmndline.cc
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2013-08-12 17:24:15 +0200
committerMichael Vogt <mvo@debian.org>2013-08-12 17:24:15 +0200
commit70e0c1683e7021a0682b0808b329a3cced3920ac (patch)
treec330cf1655226c8e4b9e5e2174d20ea281e8bb41 /apt-pkg/contrib/cmndline.cc
parentb40394c0ff509954c37254b0993a985ea3ff1467 (diff)
some more coverity fixes
Diffstat (limited to 'apt-pkg/contrib/cmndline.cc')
-rw-r--r--apt-pkg/contrib/cmndline.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/apt-pkg/contrib/cmndline.cc b/apt-pkg/contrib/cmndline.cc
index 75d02cad4..d77ef4540 100644
--- a/apt-pkg/contrib/cmndline.cc
+++ b/apt-pkg/contrib/cmndline.cc
@@ -361,6 +361,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;