From 4b3e8bd1d1011ebfdb31ee47d27c1f1e5d97a73a Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sun, 20 Aug 2023 19:21:38 +0100 Subject: [PATCH] [Minor] Simplify --- src/libserver/cfg_rcl.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/libserver/cfg_rcl.cxx b/src/libserver/cfg_rcl.cxx index e878c557f..310d89391 100644 --- a/src/libserver/cfg_rcl.cxx +++ b/src/libserver/cfg_rcl.cxx @@ -358,7 +358,6 @@ rspamd_rcl_group_handler(rspamd_mempool_t *pool, const ucl_object_t *obj, struct rspamd_rcl_section *section, GError **err) { auto *cfg = static_cast(ud); - const gchar *description = nullptr; g_assert(key != nullptr); @@ -450,10 +449,8 @@ rspamd_rcl_group_handler(rspamd_mempool_t *pool, const ucl_object_t *obj, if (const auto *elt = ucl_object_lookup(obj, "description"); elt != nullptr) { - description = ucl_object_tostring(elt); - gr->description = rspamd_mempool_strdup(cfg->cfg_pool, - description); + ucl_object_tostring(elt)); } struct rspamd_rcl_symbol_data sd = { -- 2.39.5