diff options
Diffstat (limited to '')
-rw-r--r-- | src/basic/list.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/basic/list.h b/src/basic/list.h index 643e0bea88..040680c30a 100644 --- a/src/basic/list.h +++ b/src/basic/list.h @@ -38,9 +38,9 @@ /* Append an item to the list */ #define LIST_APPEND(name,head,item) \ do { \ - typeof(*(head)) *_tail; \ - LIST_FIND_TAIL(name,head,_tail); \ - LIST_INSERT_AFTER(name,head,_tail,item); \ + typeof(*(head)) **_hhead = &(head), *_tail; \ + LIST_FIND_TAIL(name, *_hhead, _tail); \ + LIST_INSERT_AFTER(name, *_hhead, _tail, item); \ } while (false) /* Remove an item from the list */ |