[or-cvs] r14217: Backport adding an initializer for policy_root. (in tor/branches/tor-0_2_0-patches: . src/or)

nickm at seul.org nickm at seul.org
Thu Mar 27 16:56:32 UTC 2008


Author: nickm
Date: 2008-03-27 12:56:32 -0400 (Thu, 27 Mar 2008)
New Revision: 14217

Modified:
   tor/branches/tor-0_2_0-patches/
   tor/branches/tor-0_2_0-patches/src/or/policies.c
Log:
 r19099 at catbus:  nickm | 2008-03-27 12:52:19 -0400
 Backport adding an initializer for policy_root.



Property changes on: tor/branches/tor-0_2_0-patches
___________________________________________________________________
 svk:merge ticket from /tor/020 [r19099] on 8246c3cf-6607-4228-993b-4d95d33730f1

Modified: tor/branches/tor-0_2_0-patches/src/or/policies.c
===================================================================
--- tor/branches/tor-0_2_0-patches/src/or/policies.c	2008-03-27 16:46:39 UTC (rev 14216)
+++ tor/branches/tor-0_2_0-patches/src/or/policies.c	2008-03-27 16:56:32 UTC (rev 14217)
@@ -446,7 +446,7 @@
   addr_policy_t *policy;
 } policy_map_ent_t;
 
-static HT_HEAD(policy_map, policy_map_ent_t) policy_root;
+static HT_HEAD(policy_map, policy_map_ent_t) policy_root = HT_INITIALIZER();
 
 /** Return true iff a and b are equal. */
 static INLINE int



More information about the tor-commits mailing list