c value set to zero __memmove_avx_unaligned_erms

C
//The issue is that you probably have an uninitialized variable.
//Instead of:
char *fnam;
int nn = sprintf(fnam,"%s/%s",cwd,filnam);
//Try:
char fnam[500];
int nn = sprintf(fnam,"%s/%s",cwd,filnam);
Source

Also in C: