#20 fs_findFile writes to *lastDir when NULL

open
nobody
None
5
2008-12-01
2008-12-01
Ted Toal
No

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;

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks