dovecot-2.0: mail_search_args_dup(): Don't return broken results...

dovecot at dovecot.org dovecot at dovecot.org
Thu May 28 21:39:42 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/16b4e9cfa1c9
changeset: 9403:16b4e9cfa1c9
user:      Timo Sirainen <tss at iki.fi>
date:      Thu May 28 14:39:21 2009 -0400
description:
mail_search_args_dup(): Don't return broken results if there are no search args.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/lib-storage/mail-search.c |    2 +-

diffs (12 lines):

diff -r 5f64f935e64b -r 16b4e9cfa1c9 src/lib-storage/mail-search.c
--- a/src/lib-storage/mail-search.c	Thu May 28 12:57:15 2009 -0400
+++ b/src/lib-storage/mail-search.c	Thu May 28 14:39:21 2009 -0400
@@ -311,7 +311,7 @@ static struct mail_search_arg *
 static struct mail_search_arg *
 mail_search_arg_dup(pool_t pool, const struct mail_search_arg *arg)
 {
-	struct mail_search_arg *new_arg, **dest = &new_arg;
+	struct mail_search_arg *new_arg = NULL, **dest = &new_arg;
 
 	for (; arg != NULL; arg = arg->next) {
 		*dest = mail_search_arg_dup_one(pool, arg);


More information about the dovecot-cvs mailing list