lastDir can be NULL in fs_findFile in fs.c. In most cases this is tested and writes to *lastDir are avoided, except for:
if(filefound)*lastDir=0;
It should be (?):
if(lastDir && filefound)*lastDir=0;
Log in to post a comment.