]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
quota-status: Use new var_expand
authorAki Tuomi <aki.tuomi@open-xchange.com>
Tue, 17 Sep 2024 05:09:57 +0000 (08:09 +0300)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 12 Feb 2025 10:34:14 +0000 (12:34 +0200)
src/plugins/quota/quota-status.c

index 74c75dd0570a85d38f37f7b776d4b10a0e8cbdb3..03e1cb4cdc8098e80e78a8a561924d108146e768 100644 (file)
@@ -210,8 +210,8 @@ static void client_handle_request(struct quota_client *client)
 
                struct event *event = event_create(client->event);
                const struct var_expand_table table[] = {
-                       { '\0', error, "error" },
-                       { '\0', NULL, NULL }
+                       { .key = "error", .value = error },
+                       VAR_EXPAND_TABLE_END
                };
                struct var_expand_params params = {
                        .table = table,