projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
edaf1ff
)
Initialize variables in GetSieveRules() , thanks projectgus
author
Art Cancro
<ajc@uncensored.citadel.org>
Mon, 27 Feb 2012 16:58:47 +0000
(11:58 -0500)
committer
Art Cancro
<ajc@uncensored.citadel.org>
Mon, 27 Feb 2012 17:01:23 +0000
(12:01 -0500)
webcit/sieve.c
patch
|
blob
|
history
diff --git
a/webcit/sieve.c
b/webcit/sieve.c
index 8cf76e459a2b6fc85f7f2cd5a080aa9214e31c2e..0f34442d34efafa4c740462b740f3b3f633a2f61 100644
(file)
--- a/
webcit/sieve.c
+++ b/
webcit/sieve.c
@@
-372,7
+372,7
@@
void save_sieve(void) {
int bigaction;
char script_names[MAX_SCRIPTS][64];
int num_scripts = 0;
int bigaction;
char script_names[MAX_SCRIPTS][64];
int num_scripts = 0;
- int active_script = (-1);
+ int active_script = (-1);
/* this throws a 'set but not used' warning , check this ! */
int i;
char this_name[64];
char buf[256];
int i;
char this_name[64];
char buf[256];
@@
-1520,13
+1520,13
@@
void FreeSieveRule(void *vRule)
#define WC_RULE_HEADER "# WEBCIT_RULE|"
HashList *GetSieveRules(StrBuf *Target, WCTemplputParams *TP)
{
#define WC_RULE_HEADER "# WEBCIT_RULE|"
HashList *GetSieveRules(StrBuf *Target, WCTemplputParams *TP)
{
- StrBuf *Line;
- StrBuf *EncodedRule;
- int n;
- const char *pch;
+ StrBuf *Line
= NULL
;
+ StrBuf *EncodedRule
= NULL
;
+ int n
= 0
;
+ const char *pch
= NULL
;
HashList *SieveRules = NULL;
int Done = 0;
HashList *SieveRules = NULL;
int Done = 0;
- SieveRule *Rule;
+ SieveRule *Rule
= NULL
;
SieveRules = NewHash(1, Flathash);
serv_printf("MSIV getscript|"RULES_SCRIPT);
SieveRules = NewHash(1, Flathash);
serv_printf("MSIV getscript|"RULES_SCRIPT);