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 c25672d..42e3139 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