tainted global variables #514


  • Accepted
  • Fixed
Closed
Assigned to michaelsp
  • Arkayenro created this issue Jul 11, 2017

    Grid2\modules\StatusAuras.lua:203 color = dbx["color" .. colorCount]

     

    color is a global variable (its local in the for loop above, but only to that loop) so its getting tainted, please look at making it local to the whole function to stop it from tainting the global

  • Arkayenro edited title Jul 11, 2017
  • Arkayenro posted a comment Jul 11, 2017

    Grid2\modules\StatusAuras.lua:40 status = DebuffTypeHandlers[debuffType]

     

    status is a global, needs to be local

     

     

  • Arkayenro posted a comment Jul 11, 2017

    Grid2\modules\StatusAurasDebuffs.lua:50 name, _, textures[j], counts[j], debuffType, durations[j], expirations[j] = UnitDebuff(unit, i)

     

    debuffType is a global, needs to be local

  • michaelsp added a tag Accepted Jul 14, 2017
  • michaelsp closed issue Sep 16, 2017
  • michaelsp self-assigned this issue Sep 16, 2017
  • michaelsp added a tag Fixed Sep 16, 2017

To post a comment, please login or register a new account.