You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by bc...@apache.org on 2020/05/09 16:15:24 UTC

[trafficserver] branch master updated: gcc10: fixed clearing an object of non-trivial type for wccp

This is an automated email from the ASF dual-hosted git repository.

bcall pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new 4638ddc  gcc10: fixed clearing an object of non-trivial type for wccp
4638ddc is described below

commit 4638ddcc2848da53b94f8678d22057d8efda8df3
Author: Bryan Call <bc...@apache.org>
AuthorDate: Wed May 6 10:54:25 2020 -0700

    gcc10: fixed clearing an object of non-trivial type for wccp
---
 src/wccp/WccpLocal.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/wccp/WccpLocal.h b/src/wccp/WccpLocal.h
index c3329d2..2b704f8 100644
--- a/src/wccp/WccpLocal.h
+++ b/src/wccp/WccpLocal.h
@@ -3486,7 +3486,7 @@ AssignInfoComp::bucket(int idx) const
 }
 inline RouterViewComp::RouterViewComp() : m_cache_count(0)
 {
-  memset(m_cache_ids, 0, sizeof(m_cache_ids));
+  ink_zero(m_cache_ids);
 }
 
 inline CapComp::CapComp() {}