]> granicus.if.org Git - neomutt/commitdiff
Fix a minor threading bug. From Edmund GRIMLEY EVANS
authorThomas Roessler <roessler@does-not-exist.org>
Wed, 29 Dec 1999 18:37:06 +0000 (18:37 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Wed, 29 Dec 1999 18:37:06 +0000 (18:37 +0000)
<edmundo@rano.demon.co.uk>, Dec 14 1999.

sort.c

diff --git a/sort.c b/sort.c
index 952fe89fb934e15af4fc462d65896f6a1f37d0a2..00816496ce0617b3ae25aca0db35a12ec4019644 100644 (file)
--- a/sort.c
+++ b/sort.c
@@ -33,7 +33,9 @@ static sort_t *AuxSort = NULL;
   set_option(OPTAUXSORT); \
   code = AuxSort(a,b); \
   unset_option(OPTAUXSORT); \
-}
+} \
+if (!code) \
+  code = (*((HEADER **)a))->index - (*((HEADER **)b))->index;
 
 int compare_score (const void *a, const void *b)
 {