From cee11a4e100dba897abc250c8ad787a69d74cf7c Mon Sep 17 00:00:00 2001
From: "Rob Swindell (on Debian Linux)" <rob@synchro.net>
Date: Sat, 30 Nov 2024 20:57:23 -0800
Subject: [PATCH] Eliminate some harmless gcc warning about using uninitialized
 vars

---
 src/sbbs3/sbbsecho.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/sbbs3/sbbsecho.c b/src/sbbs3/sbbsecho.c
index b04b17f244..6950d8a5c8 100644
--- a/src/sbbs3/sbbsecho.c
+++ b/src/sbbs3/sbbsecho.c
@@ -1623,7 +1623,7 @@ void alter_areas_ini(FILE* afilein, FILE* afileout, FILE* nmfile
 			continue;
 		}
 		/* Check for areas to add */
-		int add_index;
+		int add_index = 0;
 		if(add_all ||  (add_index = strListFind(add_area, echotag, /* case-sensitive */false)) >= 0) {
 			if(!add_all)
 				strListFastDelete(add_area, add_index, 1); /* So we can check other lists */
@@ -1740,7 +1740,7 @@ void alter_areas_bbs(FILE* afilein, FILE* afileout, FILE* nmfile
 			continue;
 		}
 		/* Check for areas to add */
-		int add_index;
+		int add_index = 0;
 		if(add_all || (add_index = strListFind(add_area, echotag, /* case-sensitive */false)) >= 0) {
 			if(!add_all)
 				strListFastDelete(add_area, add_index, 1); /* So we can check other lists */
-- 
GitLab