소스 검색

you can't declare variables in the middle of a block

svn:r5214
Roger Dingledine 20 년 전
부모
커밋
46af2d26d0
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/or/router.c

+ 2 - 1
src/or/router.c

@@ -813,9 +813,10 @@ router_rebuild_descriptor(int force)
   if (authdir_mode(options))
     ri->is_verified = ri->is_named = 1; /* believe in yourself */
   if (options->MyFamily) {
+    smartlist_t *family;
     if (!warned_nonexistent_family)
       warned_nonexistent_family = smartlist_create();
-    smartlist_t *family = smartlist_create();
+    family = smartlist_create();
     ri->declared_family = smartlist_create();
     smartlist_split_string(family, options->MyFamily, ",",
                            SPLIT_SKIP_SPACE|SPLIT_IGNORE_BLANK, 0);