From ca39626dd4b0c7a32e0cbdcaf7eac87028467c4e Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Wed, 19 May 2004 19:42:50 +0000 Subject: [PATCH] fix compile error in dirserv (declare variables before the rest of the function) svn:r1896 --- trunk/src/or/dirserv.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/trunk/src/or/dirserv.c b/trunk/src/or/dirserv.c index 6724459b22..0e57983a38 100644 --- a/trunk/src/or/dirserv.c +++ b/trunk/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);