Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 93719595 authored by Rob Swindell's avatar Rob Swindell 💬

Fix Coverity-reported use of uninitialized variable

parent 87d66142
Pipeline #1385 passed with stage
in 11 minutes and 27 seconds
...@@ -252,7 +252,7 @@ void sbbs_t::update_qwkroute(char *via) ...@@ -252,7 +252,7 @@ void sbbs_t::update_qwkroute(char *via)
break; break;
if(i==total_qwknodes) { /* Not in list */ if(i==total_qwknodes) { /* Not in list */
if((qwknode=(struct qwknode*)realloc(qwknode,sizeof(struct qwknode)*(total_qwknodes+1)))==NULL) { 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; break;
} }
total_qwknodes++; total_qwknodes++;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment