]> git.saurik.com Git - apt.git/commitdiff
initialize the whole search array with zero
authorDavid Kalnischkies <kalnischkies@gmail.com>
Sat, 25 May 2013 17:47:28 +0000 (19:47 +0200)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Sun, 9 Jun 2013 13:12:07 +0000 (15:12 +0200)
Git-Dch: Ignore

cmdline/apt-cache.cc

index 0a2c28d2389309b8cbeefa254a1b1acbd7c99da6..de263a300e7c6588edff1399b0ae61bf8825e887 100644 (file)
@@ -1247,7 +1247,7 @@ bool Search(CommandLine &CmdL)
    }
    
    ExDescFile *DFList = new ExDescFile[Cache->HeaderP->GroupCount+1];
    }
    
    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)
 
    // Map versions that we want to write out onto the VerList array.
    for (pkgCache::GrpIterator G = Cache->GrpBegin(); G.end() == false; ++G)