# HG changeset patch # User Alexis Jeandet # Date 2016-07-04 15:28:55 # Node ID eee9d5c97f55f377210426c1688224e9adc3dd8d # Parent 1f143e4ae72a0bb4832b546eb76eb50e94049b80 Basic mistake fixed, pointer not initialized. diff --git a/elf/elffile.cpp b/elf/elffile.cpp --- a/elf/elffile.cpp +++ b/elf/elffile.cpp @@ -32,8 +32,9 @@ ElfFile::ElfFile() this->opened = false; this->type_elf = false; this->elfFile = (int)NULL; - this->e = NULL; - this->data = NULL; + this->e = Q_NULLPTR; + this->data = Q_NULLPTR; + this->scn = Q_NULLPTR; this->SymbolCount = 0; } @@ -43,10 +44,11 @@ ElfFile::ElfFile(const QString &File) this->opened = false; this->type_elf = false; this->elfFile = (int)NULL; - this->e = NULL; + this->e = Q_NULLPTR; + this->data = Q_NULLPTR; + this->scn = Q_NULLPTR; + this->SymbolCount = 0; this->p_fileName = File; - this->data = NULL; - this->SymbolCount = 0; openFile(File); }