[Aptitude-svn-commit] r4024 - in branches/aptitude-0.3/aptitude: .
src/generic
Daniel Burrows
dburrows at costa.debian.org
Wed Aug 31 22:37:16 UTC 2005
Author: dburrows
Date: Wed Aug 31 22:37:13 2005
New Revision: 4024
Modified:
branches/aptitude-0.3/aptitude/ChangeLog
branches/aptitude-0.3/aptitude/src/generic/immset.h
Log:
Fix a segfault on empty nodes.
Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog (original)
+++ branches/aptitude-0.3/aptitude/ChangeLog Wed Aug 31 22:37:13 2005
@@ -2,6 +2,11 @@
* src/generic/immset.h:
+ Right, don't crash on empty nodes (somehow that got lost when
+ pasting from the code in the staging area).
+
+ * src/generic/immset.h:
+
Add operator<< implementations that show the structure of each
set/map.
Modified: branches/aptitude-0.3/aptitude/src/generic/immset.h
==============================================================================
--- branches/aptitude-0.3/aptitude/src/generic/immset.h (original)
+++ branches/aptitude-0.3/aptitude/src/generic/immset.h Wed Aug 31 22:37:13 2005
@@ -339,6 +339,9 @@
int level = 0,
int mode = -1) const
{
+ if(empty())
+ return;
+
for(int i = 0; i < indent; ++i)
for(int j = 0; j < level; ++j)
out << " ";
More information about the Aptitude-svn-commit
mailing list