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

Fix use of unitialize variable

Since we we're not using opennodeext(), we don't have the path/fname for
any failure error message here.

CID 515714
parent 4610fc7b
No related branches found
No related tags found
No related merge requests found
Pipeline #7359 passed
......@@ -286,7 +286,7 @@ bool sbbs_t::getnodeext(uint number, char *ext)
if((node_ext=opennodeext(&cfg))==-1) {
memset(ext,0,128);
errormsg(WHERE,ERR_OPEN,str,O_RDONLY|O_DENYNONE);
errormsg(WHERE,ERR_OPEN,"node.exb",O_RDONLY|O_DENYNONE);
return false;
}
......
......@@ -112,7 +112,7 @@ bool sbbs_t::putnodeext(uint number, char *ext)
number--; /* make zero based */
if((node_ext=opennodeext(&cfg))==-1) {
errormsg(WHERE,ERR_OPEN,str,O_CREAT|O_RDWR|O_DENYNONE);
errormsg(WHERE,ERR_OPEN,"node.exb",O_CREAT|O_RDWR|O_DENYNONE);
return false;
}
for(count=0;count<LOOP_NODEDAB;count++) {
......
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