Per code review:\

* Make sure all members are initialized upon construction


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17882 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer 2004-11-16 06:47:07 +00:00
parent 60f1758f7c
commit 1f465809cd
2 changed files with 4 additions and 2 deletions

View File

@ -124,7 +124,8 @@ void ArchiveMember::replaceWith(const sys::Path& newFile) {
// Archive class. Everything else (default,copy) is deprecated. This just
// initializes and maps the file into memory, if requested.
Archive::Archive(const sys::Path& filename, bool map )
: archPath(filename), members(), mapfile(0), base(0), symTab(), symTabSize(0)
: archPath(filename), members(), mapfile(0), base(0), symTab(), strtab(),
symTabSize(0), firstFileOffset(0), modules(), foreignST(0)
{
if (map) {
mapfile = new sys::MappedFile(filename);

View File

@ -124,7 +124,8 @@ void ArchiveMember::replaceWith(const sys::Path& newFile) {
// Archive class. Everything else (default,copy) is deprecated. This just
// initializes and maps the file into memory, if requested.
Archive::Archive(const sys::Path& filename, bool map )
: archPath(filename), members(), mapfile(0), base(0), symTab(), symTabSize(0)
: archPath(filename), members(), mapfile(0), base(0), symTab(), strtab(),
symTabSize(0), firstFileOffset(0), modules(), foreignST(0)
{
if (map) {
mapfile = new sys::MappedFile(filename);