[tor-commits] [tor/master] Fix an uninitialized-variable warning.

nickm at torproject.org nickm at torproject.org
Fri Jan 30 19:48:00 UTC 2015


commit bc9ade055e7a256e5d8a5be876806a8dd0bca7af
Author: Nick Mathewson <nickm at torproject.org>
Date:   Fri Jan 30 14:46:18 2015 -0500

    Fix an uninitialized-variable warning.
---
 src/or/rendservice.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/or/rendservice.c b/src/or/rendservice.c
index 7028763..28d922a 100644
--- a/src/or/rendservice.c
+++ b/src/or/rendservice.c
@@ -336,7 +336,7 @@ parse_port_config(const char *string)
 {
   smartlist_t *sl;
   int virtport;
-  int realport;
+  int realport = 0;
   uint16_t p;
   tor_addr_t addr;
   const char *addrport;





More information about the tor-commits mailing list