Commit 42706e84 authored by Lenitra's avatar Lenitra
Browse files

push3

parent 2b135c60
Loading
Loading
Loading
Loading
+1 −1
Changes for src/list.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@ list_t list_push(list_t l, void* x){
  // add x to the end of l
  list_t c = malloc(sizeof(*c));
  c -> val = x;
  if(l == NULL){
  if(list_is_empty(l)){
    c -> id = 1;
    c -> next = NULL;
  } else {