diff options
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/dllist.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/dllist.h b/src/common/dllist.h index 1bd1ead..5941f64 100644 --- a/src/common/dllist.h +++ b/src/common/dllist.h @@ -95,7 +95,7 @@ void __dl_list_splice(dl_list_item *, dl_list_head); { \ dl_list_item *hmbr = &(*head)->member; \ __dl_list_del(&item->member, &hmbr); \ - *(head) = container_of(hmbr, type, member); \ + *(head) = (hmbr ? container_of(hmbr, type, member) : NULL); \ DL_LIST_ITEM_INIT(&item->member); \ } \ while(0) |