summaryrefslogtreecommitdiff
path: root/apt-pkg/depcache.cc
diff options
context:
space:
mode:
authorWarren He <microrffr@gmail.com>2014-08-29 11:15:30 +0200
committerDavid Kalnischkies <david@kalnischkies.de>2014-08-29 11:19:05 +0200
commitfb4c76436a88a04d1d9b7e9622e431ed8ab708a6 (patch)
tree3d0713bd68415dc29e16db375d324827295ac442 /apt-pkg/depcache.cc
parent244397512db2221f99b6ac9124b9b2e175ff3bae (diff)
initialize iPolicyBrokenCount in DepCache::Update
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
Diffstat (limited to 'apt-pkg/depcache.cc')
-rw-r--r--apt-pkg/depcache.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/apt-pkg/depcache.cc b/apt-pkg/depcache.cc
index c25672d1c..42e31396b 100644
--- a/apt-pkg/depcache.cc
+++ b/apt-pkg/depcache.cc
@@ -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