]> granicus.if.org Git - mutt/commit
Make sort by "To" stable (closes #2515).
authorpywatson <pywatson@gmail.com>
Tue, 5 Jun 2007 20:12:05 +0000 (13:12 -0700)
committerpywatson <pywatson@gmail.com>
Tue, 5 Jun 2007 20:12:05 +0000 (13:12 -0700)
commitb222ff29e5c707a63a469df8850d7dc592762779
tree01247856adbcc848fa412469b4dfab2a3661c657
parentdabfc0162b9bd4da831f2a57d7aa2380087f8556
Make sort by "To" stable (closes #2515).
compare_to() calls mutt_get_name(), which may return a static pointer
if it in turn calls mutt_addr_for_display(). If this static pointer is
used for a and b, the result is bad. The fix is to make a copy of the
first object.
ChangeLog
sort.c