From 000b68ccae459f3b09ee544b3ff678c555c2496b Mon Sep 17 00:00:00 2001 From: Jan Zeleny Date: Fri, 2 Dec 2011 10:24:30 -0500 Subject: Fixed an error in macro for merging double linked lists --- src/util/dlinklist.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/dlinklist.h b/src/util/dlinklist.h index f323de702..fa4b72255 100644 --- a/src/util/dlinklist.h +++ b/src/util/dlinklist.h @@ -122,7 +122,7 @@ do { \ (list2)->prev = (el); \ tmp->next = (el)->next; \ (el)->next = (list2); \ - if ((el)->next != NULL) (el)->next->prev = tmp; \ + if (tmp->next != NULL) tmp->next->prev = tmp; \ } \ } while (0); -- cgit