March 22, 2013 [dmd-internals] [D-Programming-Language/dmd] 4dfaf0: Fix uninitialized vars in EnumDeclaration | ||||
---|---|---|---|---|
| ||||
Attachments:
| Branch: refs/heads/master Home: https://github.com/D-Programming-Language/dmd Commit: 4dfaf02d4d145ae89a0069671ffd7020e2eb4131 https://github.com/D-Programming-Language/dmd/commit/4dfaf02d4d145ae89a0069671ffd7020e2eb4131 Author: Don Clugston <emailsdontbelong@inarepository.com> Date: 2013-03-22 (Fri, 22 Mar 2013) Changed paths: M src/enum.c Log Message: ----------- Fix uninitialized vars in EnumDeclaration 'protection' and 'parent' are used in ScopeDSymbol::search (detected by Valgrind). The assignment in semantic0 is enough to fix the bug, but I also added an initialization to the constructor. Commit: 37c95de25727dc95399039eb00b6adad9f1fb92a https://github.com/D-Programming-Language/dmd/commit/37c95de25727dc95399039eb00b6adad9f1fb92a Author: Daniel Murphy <yebblies@gmail.com> Date: 2013-03-22 (Fri, 22 Mar 2013) Changed paths: M src/enum.c Log Message: ----------- Merge pull request #1788 from donc/valgrind_unintialized Fix uninitialized vars in EnumDeclaration Compare: https://github.com/D-Programming-Language/dmd/compare/0442749f02c9...37c95de25727 |
Copyright © 1999-2021 by the D Language Foundation