There was an error while loading. Please reload this page.
2 parents c5af10f + 90e9a44 commit f01432dCopy full SHA for f01432d
src/shims/generic_sys_queue.h
@@ -94,7 +94,11 @@
94
95
#define TAILQ_CONCAT(head1, head2, field) do { \
96
if (!TAILQ_EMPTY(head2)) { \
97
-(head1)->tq_last = (head2)->tq_first; \
+if ((head1)->tq_last) { \
98
+(head1)->tq_last->field.te_next = (head2)->tq_first; \
99
+} else { \
100
+(head1)->tq_first = (head2)->tq_first; \
101
+} \
102
(head2)->tq_first->field.te_prev = (head1)->tq_last; \
103
(head1)->tq_last = (head2)->tq_last; \
104
TAILQ_INIT((head2)); \
0 commit comments