From 8f536ec4bee09823f2c32008e92a4bce75c2a5e3 Mon Sep 17 00:00:00 2001
From: Stephan Bosch <stephan.bosch@open-xchange.com>
Date: Thu, 31 Oct 2024 01:01:26 +0100
Subject: [PATCH] lib-sieve: sieve-script - Use sieve_storage_cmp() in
 sieve_script_cmp()

---
 src/lib-sieve/sieve-script.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/lib-sieve/sieve-script.c b/src/lib-sieve/sieve-script.c
index 11f934d9a..be5bdc820 100644
--- a/src/lib-sieve/sieve-script.c
+++ b/src/lib-sieve/sieve-script.c
@@ -410,9 +410,7 @@ int sieve_script_cmp(const struct sieve_script *script1,
 		return (script1->script_class > script2->script_class ? 1 : -1);
 
 	if (script1->v.cmp == NULL) {
-		i_assert (script1->location != NULL && script2->location != NULL);
-
-		ret = strcmp(script1->location, script2->location);
+		ret = sieve_storage_cmp(script1->storage, script2->storage);
 		if (ret != 0)
 			return (ret < 0 ? -1 : 1);
 
-- 
GitLab