]> git.saurik.com Git - apt.git/commitdiff
initialize iPolicyBrokenCount in DepCache::Update
authorWarren He <microrffr@gmail.com>
Fri, 29 Aug 2014 09:15:30 +0000 (11:15 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Fri, 29 Aug 2014 09:19:05 +0000 (11:19 +0200)
All other counters are correctly initialized here, expect this one. The
practical effect is low as in apt we usually just do "!= 0" checks, but
only correct counters are good counters.

Closes: 758397
apt-pkg/depcache.cc

index c25672d1cee6a1a651b823d3d7662bbe6075dbed..42e31396bc64a58b4ff1afbc697384b356402e7a 100644 (file)
@@ -663,10 +663,11 @@ void pkgDepCache::Update(OpProgress *Prog)
 {   
    iUsrSize = 0;
    iDownloadSize = 0;
-   iDelCount = 0;
    iInstCount = 0;
+   iDelCount = 0;
    iKeepCount = 0;
    iBrokenCount = 0;
+   iPolicyBrokenCount = 0;
    iBadCount = 0;
 
    // Perform the depends pass