dovecot-sieve-1.1: Adding keywords crashed. Also fixed a memory ...

dovecot at dovecot.org dovecot at dovecot.org
Tue Jan 1 19:27:26 EET 2008


details:   http://hg.dovecot.org/dovecot-sieve-1.1/rev/281aade4b591
changeset: 47:281aade4b591
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Jan 01 19:27:23 2008 +0200
description:
Adding keywords crashed. Also fixed a memory leak.

diffstat:

1 file changed, 2 insertions(+), 2 deletions(-)
src/sieve-cmu.c |    4 ++--

diffs (21 lines):

diff -r 2027b51f4332 -r 281aade4b591 src/sieve-cmu.c
--- a/src/sieve-cmu.c	Sun Sep 30 23:25:57 2007 +0300
+++ b/src/sieve-cmu.c	Tue Jan 01 19:27:23 2008 +0200
@@ -498,7 +498,7 @@ static void get_flags(const sieve_imapfl
 
 	*flags_r = 0;
 
-	i_array_init(&keywords, 16);
+	t_array_init(&keywords, 16);
 	for (i = 0; i < sieve_flags->nflags; i++) {
 		name = sieve_flags->flag[i];
 
@@ -524,7 +524,7 @@ static void get_flags(const sieve_imapfl
 	array_append(&keywords, &name, 1);
 
 	*keywords_r = array_count(&keywords) == 1 ? NULL :
-		array_get(&keywords, 0);
+		array_idx(&keywords, 0);
 }
 
 static int sieve_fileinto(void *ac, 


More information about the dovecot-cvs mailing list