diff options
author | Warren He <microrffr@gmail.com> | 2014-08-29 11:15:30 +0200 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2014-08-29 11:19:05 +0200 |
commit | fb4c76436a88a04d1d9b7e9622e431ed8ab708a6 (patch) | |
tree | 3d0713bd68415dc29e16db375d324827295ac442 /apt-pkg/depcache.cc | |
parent | 244397512db2221f99b6ac9124b9b2e175ff3bae (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.cc | 3 |
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 |