X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fsieve.c;fp=webcit%2Fsieve.c;h=dd049cf82a81ea894a682a1da77ae0c428a74cc6;hb=d6a940a439def49bfcee67c52bd5b327f4ea8ac7;hp=1d55abbdd795c8302cd06c502f159e2af3f1da15;hpb=e098fb98485cc96eb82e3a63ae400dcddd44f73a;p=citadel.git diff --git a/webcit/sieve.c b/webcit/sieve.c index 1d55abbdd..dd049cf82 100644 --- a/webcit/sieve.c +++ b/webcit/sieve.c @@ -374,7 +374,7 @@ void save_sieve(void) { 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]; @@ -1522,13 +1522,13 @@ void FreeSieveRule(void *vRule) #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; - SieveRule *Rule; + SieveRule *Rule = NULL; SieveRules = NewHash(1, Flathash); serv_printf("MSIV getscript|"RULES_SCRIPT);