From b9540c9afbfbbcf17c47e6b95b957e12f7a74767 Mon Sep 17 00:00:00 2001 From: Rob Swindell <rob@synchro.net> Date: Sun, 14 Feb 2021 19:19:56 -0800 Subject: [PATCH] Don't use uninitialized variable in errormsg() Caught by Coverity. --- src/sbbs3/qwk.cpp | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/sbbs3/qwk.cpp b/src/sbbs3/qwk.cpp index b87af1a4fe..b1d3e4661f 100644 --- a/src/sbbs3/qwk.cpp +++ b/src/sbbs3/qwk.cpp @@ -1,7 +1,5 @@ /* Synchronet QWK packet-related functions */ -/* $Id: qwk.cpp,v 1.97 2020/08/10 00:43:42 rswindell Exp $ */ - /**************************************************************************** * @format.tab-size 4 (Plain Text/Source Code File Header) * * @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) * @@ -15,21 +13,9 @@ * See the GNU General Public License for more details: gpl.txt or * * http://www.fsf.org/copyleft/gpl.html * * * - * Anonymous FTP access to the most recent released source is available at * - * ftp://vert.synchro.net, ftp://cvs.synchro.net and ftp://ftp.synchro.net * - * * - * Anonymous CVS access to the development source and modification history * - * is available at cvs.synchro.net:/cvsroot/sbbs, example: * - * cvs -d :pserver:anonymous@cvs.synchro.net:/cvsroot/sbbs login * - * (just hit return, no password is necessary) * - * cvs -d :pserver:anonymous@cvs.synchro.net:/cvsroot/sbbs checkout src * - * * * For Synchronet coding style and modification guidelines, see * * http://www.synchro.net/source.html * * * - * You are encouraged to submit any modifications (preferably in Unix diff * - * format) via e-mail to mods@synchro.net * - * * * Note: If this box doesn't appear square, then you need to fix your tabs. * ****************************************************************************/ @@ -234,7 +220,7 @@ void sbbs_t::update_qwkroute(char *via) continue; if(i==total_qwknodes) { if((qwknode=(struct qwknode*)realloc(qwknode,sizeof(struct qwknode)*(i+1)))==NULL) { - errormsg(WHERE,ERR_ALLOC,str,sizeof(struct qwknode)*(i+1)); + errormsg(WHERE,ERR_ALLOC,via,sizeof(struct qwknode)*(i+1)); break; } total_qwknodes++; -- GitLab