aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/cfg_rcl.cxx
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2023-08-20 19:21:38 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2023-08-20 19:45:21 +0100
commit4b3e8bd1d1011ebfdb31ee47d27c1f1e5d97a73a (patch)
treeca95971e54fa2bce6d9bc4dac43b309fa4afe515 /src/libserver/cfg_rcl.cxx
parent0b5142f480726210c49858e0452f23206839a1fc (diff)
downloadrspamd-4b3e8bd1d1011ebfdb31ee47d27c1f1e5d97a73a.tar.gz
rspamd-4b3e8bd1d1011ebfdb31ee47d27c1f1e5d97a73a.zip
[Minor] Simplify
Diffstat (limited to 'src/libserver/cfg_rcl.cxx')
-rw-r--r--src/libserver/cfg_rcl.cxx5
1 files changed, 1 insertions, 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<rspamd_config *>(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 = {