aboutsummaryrefslogtreecommitdiffstats
path: root/src/rspamadm
diff options
context:
space:
mode:
authorssturges <ststurge@cisco.com>2022-01-27 17:14:57 -0500
committerssturges <ststurge@cisco.com>2022-01-27 17:14:57 -0500
commit639ec37769c72a45f56b4af5c078fdcc737860e9 (patch)
tree052a821c912e0dcc7b0697af0bea2f36a99f6452 /src/rspamadm
parent54a39b076073c3600d8f2f8bb655fc574937903e (diff)
downloadrspamd-639ec37769c72a45f56b4af5c078fdcc737860e9.tar.gz
rspamd-639ec37769c72a45f56b4af5c078fdcc737860e9.zip
Address PR review comments
Diffstat (limited to 'src/rspamadm')
-rw-r--r--src/rspamadm/configdump.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/rspamadm/configdump.c b/src/rspamadm/configdump.c
index 577d05581..99a246538 100644
--- a/src/rspamadm/configdump.c
+++ b/src/rspamadm/configdump.c
@@ -330,6 +330,7 @@ rspamadm_configdump (gint argc, gchar **argv, const struct rspamadm_command *cmd
ucl_object_fromdouble (s->score),
"score", strlen ("score"),
false);
+
ucl_object_insert_key (this_sym_ucl,
ucl_object_fromstring (s->description),
"description", strlen ("description"), false);
@@ -368,17 +369,17 @@ rspamadm_configdump (gint argc, gchar **argv, const struct rspamadm_command *cmd
ucl_object_t *add_groups = ucl_object_typed_new (UCL_ARRAY);
guint j;
struct rspamd_symbols_group *add_gr;
- bool one_extra = false;
+ bool has_extra_groups = false;
PTR_ARRAY_FOREACH (s->groups, j, add_gr) {
if (add_gr->name && strcmp (add_gr->name, gr_name) != 0) {
ucl_array_append (add_groups,
ucl_object_fromstring (add_gr->name));
- one_extra = true;
+ has_extra_groups = true;
}
}
- if (one_extra == true) {
+ if (has_extra_groups == true) {
ucl_object_insert_key (this_sym_ucl,
add_groups,
"groups", strlen ("groups"),