[or-cvs] you can"t declare variables in the middle of a block

arma at seul.org arma at seul.org
Fri Oct 7 18:56:23 UTC 2005


Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or

Modified Files:
	router.c 
Log Message:
you can't declare variables in the middle of a block


Index: router.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/router.c,v
retrieving revision 1.217
retrieving revision 1.218
diff -u -d -r1.217 -r1.218
--- router.c	6 Oct 2005 04:33:40 -0000	1.217
+++ router.c	7 Oct 2005 18:56:21 -0000	1.218
@@ -813,9 +813,10 @@
   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);



More information about the tor-commits mailing list