瀏覽代碼

fix compile error in dirserv
(declare variables before the rest of the function)


svn:r1896

Roger Dingledine 21 年之前
父節點
當前提交
41c9b8230d
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/or/dirserv.c

+ 3 - 1
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);