fixed error: 'for' loop initial declarations are only allowed in C99 or C11 mode
authorArt Cancro <ajc@citadel.org>
Wed, 23 Dec 2020 23:07:14 +0000 (18:07 -0500)
committerArt Cancro <ajc@citadel.org>
Wed, 23 Dec 2020 23:07:14 +0000 (18:07 -0500)
citadel/modules/inboxrules/serv_inboxrules.c

index 4979e57..2852e00 100644 (file)
@@ -218,7 +218,8 @@ struct inboxrules *deserialize_inbox_rules(char *serialized_rules) {
                        // We have a rule , now parse it
                        char rtoken[SIZ];
                        int nt = num_tokens(decoded_rule, '|');
-                       for (int t=0; t<nt; ++t) {
+                       int t = 0;
+                       for (t=0; t<nt; ++t) {
                                extract_token(rtoken, decoded_rule, t, '|', sizeof(rtoken));
                                striplt(rtoken);
                                switch(t) {