du6
This commit is contained in:
parent
f5141b1e0c
commit
419d8ead1f
@ -4,7 +4,7 @@
|
||||
|
||||
list_t *new_list(size_t length, list_element_t elements[]) {
|
||||
list_t *list = malloc(sizeof(list_t) + sizeof(list_element_t) * length);
|
||||
if (!x) return NULL;
|
||||
if (!list) return NULL;
|
||||
|
||||
list->length = length;
|
||||
for (size_t i = 0; i < length; ++i) {
|
||||
|
Loading…
Reference in New Issue
Block a user