From 208baace54dc0dbb836da23648c91dc73c31d3f7 Mon Sep 17 00:00:00 2001 From: Eric Patrizio Date: Mon, 28 Feb 2022 10:17:08 +0100 Subject: [PATCH] Issue #16 Bug fix linked_list memory allocation --- src/linked_list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/linked_list.c b/src/linked_list.c index d7c7691..1ded174 100644 --- a/src/linked_list.c +++ b/src/linked_list.c @@ -7,7 +7,7 @@ linked_list linked_list_create() { - linked_list empty_ll = malloc(sizeof(linked_list)); + linked_list empty_ll = malloc(sizeof(struct _linked_list)); empty_ll->first = NULL; empty_ll->last = NULL; empty_ll->size = 0;