hello Im trying to implement a linked list

here is a small funtion that navigates to the bottom of the list

```
struct list* nav(struct list* head){
     struct list* search;
     search = head;
     while(search->next != NULL){
       search = search->next;
     }
     return search;
}

```

im getting a segfault when i do compare search->next with null any advice on how i can avoid this?