[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] Old gccs want you to do your variable declarations first



Update of /home/or/cvsroot/tor/src/or
In directory moria:/tmp/cvs-serv18363/src/or

Modified Files:
	connection_edge.c 
Log Message:
Old gccs want you to do your variable declarations first

Index: connection_edge.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/connection_edge.c,v
retrieving revision 1.370
retrieving revision 1.371
diff -u -d -r1.370 -r1.371
--- connection_edge.c	6 Dec 2005 07:21:17 -0000	1.370
+++ connection_edge.c	6 Dec 2005 17:01:36 -0000	1.371
@@ -1006,8 +1006,8 @@
     } else {
       struct in_addr in;
       conn->chosen_exit_name = tor_strdup(socks->address);
-      *socks->address = 0;
       routerinfo_t *r = router_get_by_nickname(conn->chosen_exit_name, 1);
+      *socks->address = 0;
       if (r) {
         /* XXXX Should this use server->address instead? */
         in.s_addr = htonl(r->addr);