[
https://issues.apache.org/jira/browse/TS-1120?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13875917#comment-13875917
]
Leif Hedstrom commented on TS-1120:
-----------------------------------
Alan: Are we going to do this ?
> Use ink_zero / ats_zero instead of calling memset when zeroing a variable or
> member.
> ------------------------------------------------------------------------------------
>
> Key: TS-1120
> URL: https://issues.apache.org/jira/browse/TS-1120
> Project: Traffic Server
> Issue Type: Improvement
> Components: Cleanup
> Affects Versions: 3.1.2
> Reporter: Alan M. Carroll
> Priority: Minor
> Labels: cleanup, memory, safety
> Fix For: sometime
>
>
> We have an inline template, ink_zero(foo) which does "memset(&foo, 0,
> sizeof(foo))". Because this is easy to mess up with a typo, the inline
> template should be used for safety and clarity. Also, the template should be
> renamed "ats_zero" to be consistent.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)