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

[tor-commits] [tor/master] Initialise configured_addresses to a known value (NULL)



commit bb32c29986ecae6a213254dbfcd5c652caa4102c
Author: teor (Tim Wilson-Brown) <teor2345@xxxxxxxxx>
Date:   Sun Dec 6 20:24:45 2015 +1100

    Initialise configured_addresses to a known value (NULL)
---
 src/or/policies.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/or/policies.c b/src/or/policies.c
index 7f71b0d..2f81942 100644
--- a/src/or/policies.c
+++ b/src/or/policies.c
@@ -1350,7 +1350,7 @@ policies_parse_exit_policy_from_options(const or_options_t *or_options,
                                         smartlist_t **result)
 {
   exit_policy_parser_cfg_t parser_cfg = 0;
-  smartlist_t *configured_addresses;
+  smartlist_t *configured_addresses = NULL;
   int rv = 0;
 
   /* Short-circuit for non-exit relays */



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits