summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2012-04-16 23:55:39 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2012-04-16 23:55:39 +0200
commit5ab7b53b09c508eb551eaf698bd2035cd3bc8777 (patch)
tree148ce23b8b10a8f914f0516edfc13befde369818 /apt-pkg
parent872ed75fec87d7593997467809fcd17dcb88af0c (diff)
* apt-pkg/packagemanager.cc:
- init counter in SmartConfigure so that the loop-breaker isn't triggered at random… (Closes: #669060)
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/packagemanager.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/packagemanager.cc b/apt-pkg/packagemanager.cc
index c62c4d187..093999bc2 100644
--- a/apt-pkg/packagemanager.cc
+++ b/apt-pkg/packagemanager.cc
@@ -602,7 +602,7 @@ bool pkgPackageManager::SmartUnPack(PkgIterator Pkg, bool const Immediate, int c
or by the ConfigureAll call at the end of the for loop in OrderInstall. */
bool Changed = false;
const unsigned int max_loops = _config->FindI("APT::pkgPackageManager::MaxLoopCount", 500);
- unsigned int i;
+ unsigned int i = 0;
do
{
Changed = false;