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

Fix Coverity-reported use of uninitialized variable

parent 87d66142
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #1385 passed
......@@ -252,7 +252,7 @@ void sbbs_t::update_qwkroute(char *via)
break;
if(i==total_qwknodes) { /* Not in list */
if((qwknode=(struct qwknode*)realloc(qwknode,sizeof(struct qwknode)*(total_qwknodes+1)))==NULL) {
errormsg(WHERE,ERR_ALLOC,str,sizeof(struct qwknode)*(total_qwknodes+1));
errormsg(WHERE,ERR_ALLOC,node,sizeof(struct qwknode)*(total_qwknodes+1));
break;
}
total_qwknodes++;
......
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