Fix _dbl_list_pop_front bug
This commit is contained in:
1 parent
4ea30f0762
commit
6c5352e9de
1 file changed
+1
-1
@@ -143,7 +143,7 @@ GenericNode *_dbl_list_pop_front(GenericList *list, u64 item_size) {
|
||||
output = list->first;
|
||||
|
||||
if (list->node_count == 1) {
|
||||
*list = (GenericList){0};
|
||||
*list = (GenericList){.magic = WAPP_DBL_LIST_MAGIC, .item_size = item_size};
|
||||
goto RETURN_I32_LIST_POP_FRONT;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user