fixed error: 'for' loop initial declarations are only allowed in C99 or C11 mode
[citadel.git] / citadel / modules / inboxrules / serv_inboxrules.c
index 4979e57150e74f64900535fef0bd7de83e26c0bf..2852e00bfdf056f40e39b6b749cc1f24fe37c0da 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) {