NULL terminated linked list in append();