aboutsummaryrefslogtreecommitdiffstats
path: root/FICS
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-05-19 22:45:50 +0200
committerMarkus Uhlin <markus@nifty-networks.net>2024-05-19 22:45:50 +0200
commitedbdcfb24c5e534e79ff5261db1064ab5676e67e (patch)
treef1afa8f3042c8d4577a9658f7c2594284cee358a /FICS
parent149e08fff9f4a43fdb9679bff7b8dc4593c38f06 (diff)
Array init
Diffstat (limited to 'FICS')
-rw-r--r--FICS/lists.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/FICS/lists.c b/FICS/lists.c
index c26f547..5544d9f 100644
--- a/FICS/lists.c
+++ b/FICS/lists.c
@@ -79,8 +79,8 @@ list_find(int p, enum ListWhich l)
return NULL;
if (!personal) { // now we have to load the list
FILE *fp;
- char filename[MAX_FILENAME_SIZE];
- char listmember[100];
+ char filename[MAX_FILENAME_SIZE] = { '\0' };
+ char listmember[100] = { '\0' };
sprintf(filename, "%s/%s", lists_dir, ListArray[l].name);
@@ -362,7 +362,7 @@ list_addsub(int p, char *list, char *who, int addsub)
if (!personal) {
FILE *fp;
- char filename[MAX_FILENAME_SIZE];
+ char filename[MAX_FILENAME_SIZE] = { '\0' };
switch (gl->which) {
case L_MUZZLE: