commit fda7f00321c88e832c852d7bc9da2daa8a018d97
Author: Nick Mathewson <[email protected]>
Date:   Fri Dec 23 09:59:41 2016 -0500

    Note memset as redundant; see 20764.
---
 src/common/address.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/common/address.c b/src/common/address.c
index c89e879..a5dbae4 100644
--- a/src/common/address.c
+++ b/src/common/address.c
@@ -159,6 +159,8 @@ tor_addr_from_sockaddr(tor_addr_t *a, const struct sockaddr 
*sa,
   tor_assert(a);
   tor_assert(sa);
 
+  /* This memset is redundant; leaving it in to avoid any future accidents,
+     however. */
   memset(a, 0, sizeof(*a));
 
   if (sa->sa_family == AF_INET) {

_______________________________________________
tor-commits mailing list
[email protected]
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits

Reply via email to