segmentation fault in list_struct.c