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

Fix editmsg() always fails bug introduced in commit 0c441424

Another Coverity-issued-fixed-introduced-bug.

Failure to remove a non-existant file is not reason for failure.
parent 7bbe3f02
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #1717 passed
......@@ -1612,8 +1612,7 @@ bool sbbs_t::editmsg(smb_t* smb, smbmsg_t *msg)
return false;
msg_tmp_fname(useron.xedit, msgtmp, sizeof(msgtmp));
if(removecase(msgtmp) != 0)
return false;
(void)removecase(msgtmp);
msgtotxt(smb, msg, msgtmp, /* header: */false, /* mode: */GETMSGTXT_ALL);
if(!editfile(msgtmp, /* msg: */true))
return false;
......
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