diff options
Diffstat (limited to 'set_linked_lists.c')
-rw-r--r-- | set_linked_lists.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 { |