]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
fix compile error in dirserv
authorRoger Dingledine <arma@torproject.org>
Wed, 19 May 2004 19:42:50 +0000 (19:42 +0000)
committerRoger Dingledine <arma@torproject.org>
Wed, 19 May 2004 19:42:50 +0000 (19:42 +0000)
(declare variables before the rest of the function)

svn:r1896

src/or/dirserv.c

index 6724459b22e17d975e77fa53a17beb5114d76231..0e57983a38ab57b279724810c1d964e889fa2024 100644 (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);