From: David Kalnischkies <kalnischkies@gmail.com>
Date: Sat, 25 May 2013 17:47:28 +0000 (+0200)
Subject: initialize the whole search array with zero
X-Git-Tag: 0.9.9~3^2~25
X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/991e690a693cf3724b815c1fb358aa033af73c03

initialize the whole search array with zero

Git-Dch: Ignore
---

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)