From a7d5059475d53e6b5b22d658bbb2591759285e8d Mon Sep 17 00:00:00 2001 From: jacekpoz Date: Mon, 11 Mar 2024 01:22:02 +0100 Subject: [PATCH] won't fix anything but for the sake of correctness --- lab01/zad3/src/doubly_linked_list.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lab01/zad3/src/doubly_linked_list.c b/lab01/zad3/src/doubly_linked_list.c index c7c9f18..3db1fb1 100644 --- a/lab01/zad3/src/doubly_linked_list.c +++ b/lab01/zad3/src/doubly_linked_list.c @@ -7,6 +7,7 @@ Node *node_new(void *value, size_t element_size) { Node *new = (Node*)malloc(sizeof(Node)); new->value = memcpy(malloc(element_size), value, sizeof(element_size)); new->next = NULL; + new->prev = NULL; return new; }