[Aptitude-devel] r3039 - in branches/aptitude-0.3/aptitude: . src
Daniel Burrows
dburrows@costa.debian.org
Fri, 22 Apr 2005 03:49:47 +0000
Author: dburrows
Date: Fri Apr 22 03:49:44 2005
New Revision: 3039
Modified:
branches/aptitude-0.3/aptitude/ChangeLog
branches/aptitude-0.3/aptitude/src/broken_indicator.cc
Log:
Don't crash when trying to blank the indicator.
Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog (original)
+++ branches/aptitude-0.3/aptitude/ChangeLog Fri Apr 22 03:49:44 2005
@@ -1,5 +1,10 @@
2005-04-21 Daniel Burrows <dburrows@debian.org>
+ * src/broken_indicator.cc:
+
+ Oops, blank the indicator by making it an empty fragment, not by
+ making it NULL.
+
* src/broken_indicator.cc, src/pkg_view.cc:
Hook up the broken indicator to the package-view class, and do
Modified: branches/aptitude-0.3/aptitude/src/broken_indicator.cc
==============================================================================
--- branches/aptitude-0.3/aptitude/src/broken_indicator.cc (original)
+++ branches/aptitude-0.3/aptitude/src/broken_indicator.cc Fri Apr 22 03:49:44 2005
@@ -56,7 +56,7 @@
{
if((!apt_cache_file) || !(*apt_cache_file)->resolver_exists())
{
- set_fragment(NULL);
+ set_fragment(fragf(""));
return;
}