GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

Commit f7adf365 authored by Nick Mathewson's avatar Nick Mathewson 🐛

Simplify logic to use smartlist_add_asprintf()

parent 151d446a
Pipeline #1395 failed with stage
in 51 minutes and 17 seconds
......@@ -1995,9 +1995,8 @@ dirclient_dump_total_dls(void)
if (options->SafeLogging_ != SAFELOG_SCRUB_NONE &&
purpose_needs_anonymity(i, ROUTER_PURPOSE_GENERAL, NULL))
continue;
char *line = NULL;
tor_asprintf(&line, "%"PRIu64" (%s)", n, dir_conn_purpose_to_string(i));
smartlist_add(lines, line);
smartlist_add_asprintf(lines, "%"PRIu64" (%s)",
n, dir_conn_purpose_to_string(i));
}
if (smartlist_len(lines) > 0) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment