diff options
author | Andreas Hansson <andreas.hansson@arm.com> | 2014-09-09 04:36:31 -0400 |
---|---|---|
committer | Andreas Hansson <andreas.hansson@arm.com> | 2014-09-09 04:36:31 -0400 |
commit | da4539dc749c3d29c03de9b3130f1c9a7266be9d (patch) | |
tree | c58cfe7bb1b489f440883cb4ec8a2a25e546aa20 /src/base/loader | |
parent | 346fe7337009980566e023a60a09391ed893a5c0 (diff) | |
download | gem5-da4539dc749c3d29c03de9b3130f1c9a7266be9d.tar.xz |
misc: Fix a number of unitialised variables and members
Static analysis unearther a bunch of uninitialised variables and
members, and this patch addresses the problem. In all cases these
omissions seem benign in the end, but at least fixing them means less
false positives next time round.
Diffstat (limited to 'src/base/loader')
-rw-r--r-- | src/base/loader/elf_object.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/base/loader/elf_object.cc b/src/base/loader/elf_object.cc index 9445f1df9..4abf0a432 100644 --- a/src/base/loader/elf_object.cc +++ b/src/base/loader/elf_object.cc @@ -239,7 +239,8 @@ ElfObject::tryFile(const string &fname, int fd, size_t len, uint8_t *data) ElfObject::ElfObject(const string &_filename, int _fd, size_t _len, uint8_t *_data, Arch _arch, OpSys _opSys) - : ObjectFile(_filename, _fd, _len, _data, _arch, _opSys) + : ObjectFile(_filename, _fd, _len, _data, _arch, _opSys), + _programHeaderTable(0), _programHeaderSize(0), _programHeaderCount(0) { Elf *elf; |