projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8294893
)
fixed error: 'for' loop initial declarations are only allowed in C99 or C11 mode
author
Art Cancro
<ajc@citadel.org>
Wed, 23 Dec 2020 23:07:14 +0000
(18:07 -0500)
committer
Art Cancro
<ajc@citadel.org>
Wed, 23 Dec 2020 23:07:14 +0000
(18:07 -0500)
citadel/modules/inboxrules/serv_inboxrules.c
patch
|
blob
|
history
diff --git
a/citadel/modules/inboxrules/serv_inboxrules.c
b/citadel/modules/inboxrules/serv_inboxrules.c
index 4979e57150e74f64900535fef0bd7de83e26c0bf..2852e00bfdf056f40e39b6b749cc1f24fe37c0da 100644
(file)
--- a/
citadel/modules/inboxrules/serv_inboxrules.c
+++ b/
citadel/modules/inboxrules/serv_inboxrules.c
@@
-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) {