You could rewrite this as:

```c
uv__fsevents_event_t** next = &handle->cf_event;
while (*next != NULL) next = &(*next)->next;
*next = event;
```