diff options
author | Karsten Loesing <karsten.loesing@gmx.net> | 2013-05-24 09:48:15 +0200 |
---|---|---|
committer | Karsten Loesing <karsten.loesing@gmx.net> | 2013-05-24 10:28:31 +0200 |
commit | b0d4ca4990d50f45a4e0e2805ff471f7408c3007 (patch) | |
tree | 33fe1c7e894c4c92c7bc1d0815daf55a7a5a7543 /src/or/confparse.c | |
parent | 1293835440dd4debf6fbfc66e755d9b9384aa362 (diff) | |
download | tor-b0d4ca4990d50f45a4e0e2805ff471f7408c3007.tar.gz tor-b0d4ca4990d50f45a4e0e2805ff471f7408c3007.zip |
Tweak #6752 patch based on comments by nickm.
Diffstat (limited to 'src/or/confparse.c')
-rw-r--r-- | src/or/confparse.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/or/confparse.c b/src/or/confparse.c index 8607f582ce..eb0362f494 100644 --- a/src/or/confparse.c +++ b/src/or/confparse.c @@ -588,7 +588,6 @@ config_get_assigned_option(const config_format_t *fmt, const void *options, const void *value; config_line_t *result; smartlist_t *csv_str; - char *s; tor_assert(options && key); CONFIG_CHECK(fmt, options); @@ -676,8 +675,7 @@ config_get_assigned_option(const config_format_t *fmt, const void *options, csv_str = smartlist_new(); SMARTLIST_FOREACH_BEGIN(*(smartlist_t**)value, int *, i) { - tor_asprintf(&s, "%d", *i); - smartlist_add(csv_str, s); + smartlist_add_asprintf(csv_str, "%d", *i); } SMARTLIST_FOREACH_END(i); result->value = smartlist_join_strings(csv_str, ",", 0, NULL); |