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

Fix double close (fnopen doesn't leave the descriptor open)

Fixes CID 33724.
parent 353477eb
No related branches found
No related tags found
No related merge requests found
......@@ -863,7 +863,6 @@ void sbbs_t::removeline(char *str, char *str2, char num, char skip)
}
close(file);
if((stream=fnopen(&file,str,O_WRONLY|O_TRUNC))==NULL) {
close(file);
errormsg(WHERE,ERR_OPEN,str,O_WRONLY|O_TRUNC);
free(buf);
return;
......
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