OK, I have had a look at your code, and you have a number of lines like the following:
strncpy(uj->kerdes, strtok(NULL, ";"), sizeof(uj->kerdes) - 1);
So if there is a field missing in the csv your code will crash, as the call to
strtok
will return
NULL
. You need to change your code to call
strtok
first, and check whether it actually returns a token. Other than that, the problem could be anywhere in the remaining code.