Skip to content
Snippets Groups Projects
Commit 20703a42 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

If delfiles() is called with a NULL spec, assume "all files" (*)

parent 6865bdf3
No related branches found
No related tags found
No related merge requests found
......@@ -785,6 +785,8 @@ int delfiles(const char *inpath, const char *spec, size_t keep)
lastch=0;
else
lastch=inpath[inpath_len-1];
if(spec == NULL)
spec = ALLFILES;
path=(char *)malloc(inpath_len+1/*Delim*/+strlen(spec)+1/*Terminator*/);
if(path==NULL)
return -1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment