Commit 7e1c3c3d authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Fix CID 319119: Unchecked return value from library

Actually probably doesn't fix it, but what'evs
parent 570f6f5e
Pipeline #2883 passed with stage
in 17 minutes and 23 seconds
......@@ -1049,7 +1049,7 @@ bool sbbs_t::inetmail(const char *into, const char *subj, long mode, smb_t* resm
if(fexistcase(str2)) {
strListFree(&rcpt_list);
bputs(text[FileAlreadyThere]);
remove(msgpath);
(void)remove(msgpath);
return(false);
}
{ /* Remote */
......@@ -1065,7 +1065,7 @@ bool sbbs_t::inetmail(const char *into, const char *subj, long mode, smb_t* resm
if(ch==quit_key() || sys_status&SS_ABORT) {
bputs(text[Aborted]);
strListFree(&rcpt_list);
remove(msgpath);
(void)remove(msgpath);
return(false);
}
for(x=0;x<cfg.total_prots;x++)
......@@ -1084,7 +1084,7 @@ bool sbbs_t::inetmail(const char *into, const char *subj, long mode, smb_t* resm
else {
bprintf(text[FileNotReceived],title);
strListFree(&rcpt_list);
remove(msgpath);
(void)remove(msgpath);
return(false);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment