<<< Date Index >>>     <<< Thread Index >>>

Re: [Mutt] #2515: Sorting by from or to in index is sometimes



#2515: Sorting by from or to in index is sometimes incorrect

Changes (by pywatson@xxxxxxxxx):

  * status:  new => closed
  * resolution:  => fixed

Comment:

 (In [9e90789518ad]) 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.

-- 
Ticket URL: <http://dev.mutt.org/trac/ticket/2515#comment:4>