summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2013-05-25 19:47:28 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2013-06-09 15:12:07 +0200
commit991e690a693cf3724b815c1fb358aa033af73c03 (patch)
treed679710a6231eea44e970bcca89be4cb0ff41e31
parentf3c736f9b6fdef1d8045846c465d675858eb1471 (diff)
initialize the whole search array with zero
Git-Dch: Ignore
-rw-r--r--cmdline/apt-cache.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmdline/apt-cache.cc b/cmdline/apt-cache.cc
index 0a2c28d23..de263a300 100644
--- a/cmdline/apt-cache.cc
+++ b/cmdline/apt-cache.cc
@@ -1247,7 +1247,7 @@ bool Search(CommandLine &CmdL)
}
ExDescFile *DFList = new ExDescFile[Cache->HeaderP->GroupCount+1];
- memset(DFList,0,sizeof(*DFList)*Cache->HeaderP->GroupCount+1);
+ memset(DFList, 0, sizeof(*DFList) * (Cache->HeaderP->GroupCount + 1));
// Map versions that we want to write out onto the VerList array.
for (pkgCache::GrpIterator G = Cache->GrpBegin(); G.end() == false; ++G)