commit 4b3e8bd: [Minor] Simplify
Vsevolod Stakhov
vsevolod at rspamd.com
Sun Aug 20 18:49:03 UTC 2023
Author: Vsevolod Stakhov
Date: 2023-08-20 19:21:38 +0100
URL: https://github.com/rspamd/rspamd/commit/4b3e8bd1d1011ebfdb31ee47d27c1f1e5d97a73a
[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<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 = {
More information about the Commits
mailing list