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

svn:r5214
This commit is contained in:
Roger Dingledine
2005-10-07 18:56:21 +00:00
parent 14934dece2
commit 46af2d26d0
+2 -1
View File
@@ -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);