summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-05-19 19:42:50 +0000
committerRoger Dingledine <arma@torproject.org>2004-05-19 19:42:50 +0000
commit41c9b8230d7e30c6368e415a92859e92d171c838 (patch)
treef4169788d04817512ba8ac5094ac733ea8f4bb52
parentba14428d664e3877d29e74087f326620146a15cb (diff)
downloadtor-41c9b8230d7e30c6368e415a92859e92d171c838.tar.gz
tor-41c9b8230d7e30c6368e415a92859e92d171c838.zip
fix compile error in dirserv
(declare variables before the rest of the function) svn:r1896
-rw-r--r--src/or/dirserv.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index 6724459b22..0e57983a38 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -443,8 +443,10 @@ list_running_servers(char **nicknames_out)
char *cp;
int i;
int length;
+ smartlist_t *nicknames;
+
*nicknames_out = NULL;
- smartlist_t *nicknames = smartlist_create();
+ nicknames = smartlist_create();
smartlist_add(nicknames, options.Nickname);
get_connection_array(&connection_array, &n_conns);