[Aptitude-devel] r2988 - in branches/aptitude-0.3/aptitude: . src/generic
Daniel Burrows
dburrows@costa.debian.org
Sun, 10 Apr 2005 01:25:51 +0000
Author: dburrows
Date: Sun Apr 10 01:25:48 2005
New Revision: 2988
Modified:
branches/aptitude-0.3/aptitude/ChangeLog
branches/aptitude-0.3/aptitude/src/generic/aptitude_resolver.h
Log:
Segfault fix.
Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog (original)
+++ branches/aptitude-0.3/aptitude/ChangeLog Sun Apr 10 01:25:48 2005
@@ -1,5 +1,10 @@
2005-04-09 Daniel Burrows <dburrows@debian.org>
+ * src/generic/aptitude_resolver.h:
+
+ Fix a silly segfault by initializing a dep as I meant to do in
+ the first place.
+
* src/generic/aptitude_resolver.cc:
Fix the operator<< on deps to be more useful.
Modified: branches/aptitude-0.3/aptitude/src/generic/aptitude_resolver.h
==============================================================================
--- branches/aptitude-0.3/aptitude/src/generic/aptitude_resolver.h (original)
+++ branches/aptitude-0.3/aptitude/src/generic/aptitude_resolver.h Sun Apr 10 01:25:48 2005
@@ -858,7 +858,7 @@
/** \return \b true if the given non-end dep is InstBroken. */
bool dep_is_inst_broken(const pkgCache::DepIterator &d)
{
- pkgCache::DepIterator d2;
+ pkgCache::DepIterator d2=d;
while(d2->CompareOp & pkgCache::Dep::Or)
++d2;