diff --git a/src/plugins/imapsieve/imap-sieve-storage.c b/src/plugins/imapsieve/imap-sieve-storage.c
index 40c410879afba8aee9d196dab83531e7760cea2b..8bedb6ac34d26e3bca24358dd1219334681846fc 100644
--- a/src/plugins/imapsieve/imap-sieve-storage.c
+++ b/src/plugins/imapsieve/imap-sieve-storage.c
@@ -643,8 +643,8 @@ imap_sieve_mailbox_transaction_run(
 			if (rule->after != NULL)
 				array_append(&scripts_after, &rule->after, 1);
 		}
-		array_append_space(&scripts_before);
-		array_append_space(&scripts_after);
+		(void)array_append_space(&scripts_before);
+		(void)array_append_space(&scripts_after);
 
 		/* Initialize */
 		ret = imap_sieve_run_init