Skip to content
Snippets Groups Projects
Commit 047e105d authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

Fix a bug in config_dump: we want to run options_validate on the defaults, not...

Fix a bug in config_dump: we want to run options_validate on the defaults, not (again, uselessly) on the configuration.  This was introduced when we made the config code more generic.


svn:r4965
parent 35b78b2d
No related branches found
No related tags found
No related merge requests found
......@@ -1438,7 +1438,7 @@ config_dump(config_format_t *fmt, void *options, int minimal)
defaults = config_alloc(fmt);
config_init(fmt, defaults);
fmt->validate_fn(options);
fmt->validate_fn(defaults);
elements = smartlist_create();
for (i=0; fmt->vars[i].name; ++i) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment