fix a c99 compile bug
authorArt Cancro <ajc@citadel.org>
Sat, 6 Mar 2021 18:34:17 +0000 (13:34 -0500)
committerArt Cancro <ajc@citadel.org>
Sat, 6 Mar 2021 18:34:17 +0000 (13:34 -0500)
citadel/modules/listdeliver/serv_listdeliver.c

index 29c1c5c..265acee 100644 (file)
@@ -57,6 +57,7 @@ void listdeliver_do_msg(long msgnum, void *userdata) {
        char buf[SIZ];
        char *ch;
        char bounce_to[256];
+       int i = 0;
 
        ld->msgnum = msgnum;
        if (msgnum <= 0) return;
@@ -83,7 +84,7 @@ void listdeliver_do_msg(long msgnum, void *userdata) {
                recipients[0] = 0;
 
                int config_lines = num_tokens(ld->netconf, '\n');
-               for (int i=0; i<config_lines; ++i) {
+               for (i=0; i<config_lines; ++i) {
                        extract_token(buf, ld->netconf, i, '\n', sizeof buf);
                        if (!strncasecmp(buf, "listrecp|", 9)) {
                                if (recipients[0] != 0) {