HCoop
/
ntk
/
apt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2443975
)
initialize iPolicyBrokenCount in DepCache::Update
author
Warren He
<microrffr@gmail.com>
Fri, 29 Aug 2014 09:15:30 +0000
(11:15 +0200)
committer
David 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
patch
|
blob
|
blame
|
history
diff --git
a/apt-pkg/depcache.cc
b/apt-pkg/depcache.cc
index
c25672d
..
42e3139
100644
(file)
--- 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