From aa3bcb0fe7fb341dde994c9f2d2bcf08d4389282 Mon Sep 17 00:00:00 2001
From: Stephan Bosch <stephan@rename-it.nl>
Date: Wed, 17 Oct 2012 02:09:55 +0200
Subject: [PATCH] lib-sieve: vnd.dovecot.duplicate extension: fixed bug in
 previous change. Forgot to initialize variable, causing a segfault at
 runtime.

---
 src/lib-sieve/plugins/vnd.dovecot/duplicate/tst-duplicate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib-sieve/plugins/vnd.dovecot/duplicate/tst-duplicate.c b/src/lib-sieve/plugins/vnd.dovecot/duplicate/tst-duplicate.c
index 4f77d5af6..abe8aac37 100644
--- a/src/lib-sieve/plugins/vnd.dovecot/duplicate/tst-duplicate.c
+++ b/src/lib-sieve/plugins/vnd.dovecot/duplicate/tst-duplicate.c
@@ -277,7 +277,7 @@ static int tst_duplicate_operation_execute
 	const struct ext_duplicate_config *config =
 		(const struct ext_duplicate_config *) ext->context;
 	int opt_code = 0;
-	string_t *handle = NULL, *header = NULL, *value;
+	string_t *handle = NULL, *header = NULL, *value = NULL;
 	const char *val = NULL;
 	size_t val_len = 0;
 	sieve_number_t seconds = config->default_period;
-- 
GitLab