summaryrefslogtreecommitdiff
path: root/src/app/config/confparse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/config/confparse.c')
-rw-r--r--src/app/config/confparse.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/app/config/confparse.c b/src/app/config/confparse.c
index 7127e62cde..6e2624466a 100644
--- a/src/app/config/confparse.c
+++ b/src/app/config/confparse.c
@@ -169,6 +169,11 @@ config_var_is_invisible(const config_var_t *var)
{
return (var->flags & CVFLAG_INVISIBLE) != 0;
}
+bool
+config_var_is_dumpable(const config_var_t *var)
+{
+ return (var->flags & CVFLAG_NODUMP) == 0;
+}
/*
* Functions to assign config options.
@@ -646,7 +651,7 @@ config_dump(const config_format_t *fmt, const void *default_options,
continue;
}
/* Don't save 'hidden' control variables. */
- if (fmt->vars[i].flags & CVFLAG_NODUMP)
+ if (! config_var_is_dumpable(&fmt->vars[i]))
continue;
if (minimal && config_is_same(fmt, options, defaults,
fmt->vars[i].member.name))