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 5 years ago
- Status changed from In Progress to Closed
- % Done changed from 0 to 100
commit eae164eb03cbb004dcf9154f36352e62f693eb6c Author: Richard Lowe <firstname.lastname@example.org> Date: 2016-02-14T21:10:44.000Z 6645 sgsmsg relies on undefined behaviour of loop-scoped variables Reviewed by: Andy Stormont <email@example.com> Reviewed by: Garrett D'Amore <firstname.lastname@example.org> Reviewed by: Igor Kozhukhov <email@example.com> Approved by: Dan McDonald <firstname.lastname@example.org>