Commit edb6e859 authored by Ralf Wildenhues's avatar Ralf Wildenhues

fix a minor logic error in thread.c, and a dead code line

parent 36c6e8e3
......@@ -572,7 +572,7 @@ static int compare_threads (const void *a, const void *b)
{
static sort_t *sort_func = NULL;
if (a || b)
if (a && b)
return ((*sort_func) (&(*((THREAD **) a))->sort_key,
&(*((THREAD **) b))->sort_key));
/* a hack to let us reset sort_func even though we can't
......@@ -580,7 +580,6 @@ static int compare_threads (const void *a, const void *b)
*/
else
{
sort_func = NULL;
sort_func = mutt_get_sort_func (Sort);
return (sort_func ? 1 : 0);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment