summaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-08-27 09:01:39 -0400
committerNick Mathewson <nickm@torproject.org>2019-08-28 09:42:17 -0400
commitaa3f0c4788c5cb07243a764589c912a8ed4a26cd (patch)
treef6fe755eb86e50dfc824b6db4e66f02da66c4582 /src/app
parent380d3ee1682ce5d202d754d442928710b477f59a (diff)
downloadtor-aa3f0c4788c5cb07243a764589c912a8ed4a26cd.tar.gz
tor-aa3f0c4788c5cb07243a764589c912a8ed4a26cd.zip
Add tests for variable-listing functions.
This discovered a bug related to an extra & in config_mgr_list_deprecated_vars(): fix that.
Diffstat (limited to 'src/app')
-rw-r--r--src/app/config/confparse.c2
1 files changed, 1 insertions, 1 deletions
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;
}