aboutsummaryrefslogtreecommitdiff
path: root/ll.c
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-05-27 16:21:02 -0400
committerHolden Rohrer <hr@hrhr.dev>2020-05-27 16:21:24 -0400
commit290f2b95ee100735f55fe10af457cc65158af043 (patch)
tree6f72fa5c6312460c04cc78dcd71f370097c3903e /ll.c
parent37cd5bb9e3742f4893a14e04d49a4ba9716455c8 (diff)
Initial working commit
There are still some errors when run through valgrind, but it performs as expected for the test file.
Diffstat (limited to 'll.c')
-rw-r--r--ll.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ll.c b/ll.c
index aa0879a..910b869 100644
--- a/ll.c
+++ b/ll.c
@@ -5,5 +5,6 @@ llnode* appendll(llnode* tail, char* str){
llnode* new = malloc(sizeof(llnode));
if (tail != NULL) tail->next = new;
new->str = str;
+ new->next = NULL;
return new;
}