[SDL1.2 - C]Need help tracking down a segfault in a linked list

Hello,

I’m trying to represent linked list works fine on console but crashes randomly into a segmentation fault when I try to access the first element.

Here is my code if anyone is interested, the error happens in main.c l.106 according to the debugger.

Thanks in advance.