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

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.1.2
    • 5.2.0
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: