This is an automated email from the ASF dual-hosted git repository. zwoop pushed a commit to branch 7.1.x in repository https://gitbox.apache.org/repos/asf/trafficserver.git
commit f8b51e521611c0f8f7189b7937332a989ebf087b Author: Zhilin Huang <[email protected]> AuthorDate: Mon Feb 27 17:03:00 2017 +0800 reconstruct to load the default value for member variables (cherry picked from commit e13033aa297504ebfd0facf01dd9cbb269743179) --- proxy/ControlMatcher.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/ControlMatcher.cc b/proxy/ControlMatcher.cc index dba507b..5908c5e 100644 --- a/proxy/ControlMatcher.cc +++ b/proxy/ControlMatcher.cc @@ -219,7 +219,7 @@ HostMatcher<Data, Result>::NewEntry(matcher_line *line_info) error = cur_d->Init(line_info); if (error) { // There was a problem so undo the effects this function - memset(cur_d, 0, sizeof(Data)); + new (cur_d) Data(); // reconstruct } else { // Fill in the matching info host_lookup->NewEntry(match_data, (line_info->type == MATCH_DOMAIN) ? true : false, cur_d); -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
