From 2246928b428c3ece2c2743da5b0bb63257e37a85 Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:50:39 +0000 Subject: Res initialize glitch Author: jgg Date: 1998-07-05 05:53:52 GMT Res initialize glitch --- apt-pkg/pkgcachegen.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apt-pkg/pkgcachegen.cc b/apt-pkg/pkgcachegen.cc index 7cc5a7343..acc05f133 100644 --- a/apt-pkg/pkgcachegen.cc +++ b/apt-pkg/pkgcachegen.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: pkgcachegen.cc,v 1.5 1998/07/05 05:39:53 jgg Exp $ +// $Id: pkgcachegen.cc,v 1.6 1998/07/05 05:53:52 jgg Exp $ /* ###################################################################### Package Cache Generator - Generator for the cache structure. @@ -84,7 +84,7 @@ bool pkgCacheGenerator::MergeList(ListParser &List) pkgCache::VerIterator Ver = Pkg.VersionList(); unsigned long *Last = &Pkg->VersionList; - int Res; + int Res = 1; for (; Ver.end() == false; Last = &Ver->NextVer, Ver++) { Res = pkgVersionCompare(Version.begin(),Version.end(),Ver.VerStr(), -- cgit v1.2.3