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

Resolve CID 492287 - we don't care about the fexistcase() return value here

We're just using it to "fix" the case, if the file indeed exists.
parent 424dfe10
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
...@@ -4470,7 +4470,7 @@ void node_thread(void* arg) ...@@ -4470,7 +4470,7 @@ void node_thread(void* arg)
if(sbbs->cfg.mods_dir[0]==0 || !fexistcase(str)) { if(sbbs->cfg.mods_dir[0]==0 || !fexistcase(str)) {
SAFEPRINTF2(str,"%s%s.bin",sbbs->cfg.exec_dir SAFEPRINTF2(str,"%s%s.bin",sbbs->cfg.exec_dir
,sbbs->cfg.shell[sbbs->useron.shell]->code); ,sbbs->cfg.shell[sbbs->useron.shell]->code);
fexistcase(str); (void)fexistcase(str);
} }
if((file=sbbs->nopen(str,O_RDONLY))==-1) { if((file=sbbs->nopen(str,O_RDONLY))==-1) {
sbbs->errormsg(WHERE,ERR_OPEN,str,O_RDONLY); sbbs->errormsg(WHERE,ERR_OPEN,str,O_RDONLY);
......
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