[Aptitude-devel] Bug#815635: aptitude: sometimes crashes when reading changelogs
Wei-Cheng Pan
legnaleurc at gmail.com
Tue Feb 23 10:43:40 GMT 2016
In src/view_changelog.cc:303
it should not use changelog->get_filename() because changelog is not valid.
Just use filename then it should work.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/aptitude-devel/attachments/20160223/7b312dae/attachment.html>
-------------- next part --------------
diff --git a/src/view_changelog.cc b/src/view_changelog.cc
index 4453431..e4d246e 100644
--- a/src/view_changelog.cc
+++ b/src/view_changelog.cc
@@ -300,7 +300,7 @@ static void do_view_changelog(const string& filename,
}
else
{
- pkg_changelog_screen_ref cs = pkg_changelog_screen::create(changelog->get_filename());
+ pkg_changelog_screen_ref cs = pkg_changelog_screen::create(filename);
cw::scrollbar_ref s = cw::scrollbar::create(cw::scrollbar::VERTICAL);
cs->line_changed.connect(sigc::mem_fun(s.unsafe_get_ref(), &cw::scrollbar::set_slider));
More information about the Aptitude-devel
mailing list