[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r10882: Some older GCCs think that iph4 could be used uninitialized. (in tor/trunk: . src/common)
Author: nickm
Date: 2007-07-19 15:43:08 -0400 (Thu, 19 Jul 2007)
New Revision: 10882
Modified:
tor/trunk/
tor/trunk/src/common/util.c
Log:
r13836@catbus: nickm | 2007-07-19 15:43:04 -0400
Some older GCCs think that iph4 could be used uninitialized. Fix that.
Property changes on: tor/trunk
___________________________________________________________________
svk:merge ticket from /tor/trunk [r13836] on 8246c3cf-6607-4228-993b-4d95d33730f1
Modified: tor/trunk/src/common/util.c
===================================================================
--- tor/trunk/src/common/util.c 2007-07-19 19:40:45 UTC (rev 10881)
+++ tor/trunk/src/common/util.c 2007-07-19 19:43:08 UTC (rev 10882)
@@ -1842,7 +1842,7 @@
int
tor_addr_is_internal(const tor_addr_t *addr, int for_listening)
{
- uint32_t iph4;
+ uint32_t iph4 = 0;
uint32_t iph6[4];
sa_family_t v_family;
v_family = IN_FAMILY(addr);