Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-1120

Use ink_zero / ats_zero instead of calling memset when zeroing a variable or member.

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.2
    • Fix Version/s: 5.2.0
    • Component/s: Cleanup

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              amc Alan M. Carroll
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: