aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorKamran Riaz Khan <krkhan@inspirated.com>2011-08-09 03:17:21 +0500
committerKamran Riaz Khan <krkhan@inspirated.com>2011-08-09 03:17:21 +0500
commit5f624805e71d3f160ed7de28b17ecad892827758 (patch)
treef2368c21dc8a667ea769f4cbba867792da5b1f5e /src/or
parent3b85fe8a5dd0fed88163ffc3bcb4eec8bf2053bc (diff)
downloadtor-5f624805e71d3f160ed7de28b17ecad892827758.tar
tor-5f624805e71d3f160ed7de28b17ecad892827758.tar.gz
Minor code readability fix.
Diffstat (limited to 'src/or')
-rw-r--r--src/or/control.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/or/control.c b/src/or/control.c
index f679493d3..3943aff96 100644
--- a/src/or/control.c
+++ b/src/or/control.c
@@ -4015,15 +4015,13 @@ control_event_conf_changed(smartlist_t *elements)
for (i = 0; i < smartlist_len(elements); i += 2) {
char *k = smartlist_get(elements, i);
char *v = smartlist_get(elements, i+1);
+ char *tmp;
if (v == NULL) {
- char *tmp;
tor_asprintf(&tmp, "650-%s", k);
- smartlist_add(lines, tmp);
} else {
- char *tmp;
tor_asprintf(&tmp, "650-%s=%s", k, v);
- smartlist_add(lines, tmp);
}
+ smartlist_add(lines, tmp);
}
result = smartlist_join_strings(lines, "\r\n", 0, NULL);
send_control_event(EVENT_CONF_CHANGED, 0,