From aa3f0c4788c5cb07243a764589c912a8ed4a26cd Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 27 Aug 2019 09:01:39 -0400 Subject: Add tests for variable-listing functions. This discovered a bug related to an extra & in config_mgr_list_deprecated_vars(): fix that. --- src/app/config/confparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/app/config/confparse.c') diff --git a/src/app/config/confparse.c b/src/app/config/confparse.c index cf17107335..8b2b53003f 100644 --- a/src/app/config/confparse.c +++ b/src/app/config/confparse.c @@ -327,7 +327,7 @@ config_mgr_list_deprecated_vars(const config_mgr_t *mgr) smartlist_t *result = smartlist_new(); tor_assert(mgr); SMARTLIST_FOREACH(mgr->all_deprecations, config_deprecation_t *, d, - smartlist_add(result, &d->name)); + smartlist_add(result, (char*)d->name)); return result; } -- cgit v1.2.3-54-g00ecf