sgsmsg relies on undefined behaviour of loop-scoped variables
sgsmsg relies on a variable scoped within a loop and left uninitialized to retain its value across iterations of the loop as if it were in the outer scope. That's pretty much always true, but is also disgusting. Let's not.
Updated by Electric Monk over 4 years ago
- Status changed from In Progress to Closed
- % Done changed from 0 to 100
commit eae164eb03cbb004dcf9154f36352e62f693eb6c Author: Richard Lowe <email@example.com> Date: 2016-02-14T21:10:44.000Z 6645 sgsmsg relies on undefined behaviour of loop-scoped variables Reviewed by: Andy Stormont <firstname.lastname@example.org> Reviewed by: Garrett D'Amore <email@example.com> Reviewed by: Igor Kozhukhov <firstname.lastname@example.org> Approved by: Dan McDonald <email@example.com>