diff --git a/src/lib-sieve/plugins/imap4flags/tag-flags.c b/src/lib-sieve/plugins/imap4flags/tag-flags.c
index c942f0ae518b5f4cf09847959512af9244f98731..43e501bd6e6b4022a95b0477ccac811372e66814 100644
--- a/src/lib-sieve/plugins/imap4flags/tag-flags.c
+++ b/src/lib-sieve/plugins/imap4flags/tag-flags.c
@@ -257,7 +257,7 @@ static bool seff_flags_read_context
 	void **se_context)
 {
 	bool result = TRUE;
-	const struct sieve_operand operand;
+	struct sieve_operand operand;
 	pool_t pool = sieve_result_pool(renv->result);
 	struct seff_flags_context *ctx;
 	string_t *flags_item;