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

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


details:   http://hg.dovecot.org/dovecot-1.2/rev/77aab257cea2
changeset: 9097:77aab257cea2
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 eead0542095f -r 77aab257cea2 src/lib-storage/mail-search.c
--- a/src/lib-storage/mail-search.c	Tue May 26 16:53:29 2009 -0400
+++ b/src/lib-storage/mail-search.c	Thu May 28 14:39:21 2009 -0400
@@ -312,7 +312,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