index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2012-02-06 05:50:48 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-02-06 05:50:48 -0600 |
commit | f55be4897799c5a6dcb454455ad9edcfc36f8495 (patch) | |
tree | dd87b34de4b85f307d5dd05f6d576aadc3ad3697 /lib/libalpm/alpm_list.c | |
parent | b488f229d2ec4f2e4b9e746d68422460ca664715 (diff) | |
parent | b7c06d6d678ebe6a434b2387c3bda14647113f32 (diff) |
-rw-r--r-- | lib/libalpm/alpm_list.c | 5 |
diff --git a/lib/libalpm/alpm_list.c b/lib/libalpm/alpm_list.c index 83ba9dca..69ea469a 100644 --- a/lib/libalpm/alpm_list.c +++ b/lib/libalpm/alpm_list.c @@ -286,8 +286,11 @@ alpm_list_t SYMEXPORT *alpm_list_msort(alpm_list_t *list, size_t n, lastleft = lastleft->next; } right = lastleft->next; - /* terminate first list */ + + /* tidy new lists */ lastleft->next = NULL; + right->prev = left->prev; + left->prev = lastleft; left = alpm_list_msort(left, half, fn); right = alpm_list_msort(right, n - half, fn); |