ソースを参照

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
Warren He 12 年 前
親
コミット
fb4c76436a
共有1 個のファイルを変更した、2 個の追加 と 1 個の削除を含む
  1. 2 1
      apt-pkg/depcache.cc

+ 2 - 1
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