won't fix anything but for the sake of correctness
This commit is contained in:
parent
5f79936acc
commit
a7d5059475
1 changed files with 1 additions and 0 deletions
|
@ -7,6 +7,7 @@ Node *node_new(void *value, size_t element_size) {
|
||||||
Node *new = (Node*)malloc(sizeof(Node));
|
Node *new = (Node*)malloc(sizeof(Node));
|
||||||
new->value = memcpy(malloc(element_size), value, sizeof(element_size));
|
new->value = memcpy(malloc(element_size), value, sizeof(element_size));
|
||||||
new->next = NULL;
|
new->next = NULL;
|
||||||
|
new->prev = NULL;
|
||||||
|
|
||||||
return new;
|
return new;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue