From 9f43600ea65189e7fae39f9ed3e592cbb19de11f Mon Sep 17 00:00:00 2001 From: Alex AUVOLAT Date: Tue, 10 Dec 2013 16:51:50 +0100 Subject: Corrected a bug. --- set_linked_lists.c | 1 + 1 file changed, 1 insertion(+) (limited to 'set_linked_lists.c') diff --git a/set_linked_lists.c b/set_linked_lists.c index 004e55a..46d0c8d 100644 --- a/set_linked_lists.c +++ b/set_linked_lists.c @@ -68,6 +68,7 @@ set full_set(int n) { for (i = 0; i < n; i++) { element e = malloc(sizeof(struct set_elt)); e->value = i; + e->next = NULL; if (prev == NULL) { k->first = e; } else { -- cgit v1.2.3