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

Fix editmsg() always fails bug introduced in commit d02fc1a2

Another Coverity-issued-fixed-introduced-bug.

Failure to remove a non-existant file is not reason for failure.
parent a568ea26
No related branches found
No related tags found
No related merge requests found
...@@ -1612,8 +1612,7 @@ bool sbbs_t::editmsg(smb_t* smb, smbmsg_t *msg) ...@@ -1612,8 +1612,7 @@ bool sbbs_t::editmsg(smb_t* smb, smbmsg_t *msg)
return false; return false;
msg_tmp_fname(useron.xedit, msgtmp, sizeof(msgtmp)); msg_tmp_fname(useron.xedit, msgtmp, sizeof(msgtmp));
if(removecase(msgtmp) != 0) (void)removecase(msgtmp);
return false;
msgtotxt(smb, msg, msgtmp, /* header: */false, /* mode: */GETMSGTXT_ALL); msgtotxt(smb, msg, msgtmp, /* header: */false, /* mode: */GETMSGTXT_ALL);
if(!editfile(msgtmp, /* msg: */true)) if(!editfile(msgtmp, /* msg: */true))
return false; 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