Fix _dbl_list_pop_front bug
This commit is contained in:
@@ -143,7 +143,7 @@ GenericNode *_dbl_list_pop_front(GenericList *list, u64 item_size) {
|
|||||||
output = list->first;
|
output = list->first;
|
||||||
|
|
||||||
if (list->node_count == 1) {
|
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;
|
goto RETURN_I32_LIST_POP_FRONT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user