Skip to content

Commit aa13cad

Browse files
Merge pull request #475 from compnerd/chasing-my-tail
shims: correct `TAILQ_CONCAT`
2 parents 6bf6cb1 + 5a9419b commit aa13cad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shims/generic_sys_queue.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
#define TAILQ_CONCAT(head1, head2, field) do { \
9696
if (!TAILQ_EMPTY(head2)) { \
9797
(head1)->tq_last = (head2)->tq_first; \
98-
(head1)->tq_first->field.te_prev = (head1)->tq_last; \
98+
(head2)->tq_first->field.te_prev = (head1)->tq_last; \
9999
(head1)->tq_last = (head2)->tq_last; \
100100
TAILQ_INIT((head2)); \
101101
} \

0 commit comments

Comments
 (0)