From: Warren He Date: Fri, 29 Aug 2014 09:15:30 +0000 (+0200) Subject: initialize iPolicyBrokenCount in DepCache::Update X-Git-Tag: 1.0.8~25 X-Git-Url: http://git.hcoop.net/ntk/apt.git/commitdiff_plain/fb4c76436a88a04d1d9b7e9622e431ed8ab708a6 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 --- diff --git a/apt-pkg/depcache.cc b/apt-pkg/depcache.cc index c25672d1..42e31396 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