fix compile error in dirserv

(declare variables before the rest of the function)


svn:r1896
This commit is contained in:
Roger Dingledine 2004-05-19 19:42:50 +00:00
parent ba14428d66
commit 41c9b8230d

View File

@ -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);