mirror of
https://github.com/QuasarApp/macdependency.git
synced 2025-05-21 15:19:33 +00:00
Init variables to avoid crashes.
This commit is contained in:
parent
469685df7b
commit
5d1858f502
@ -40,8 +40,8 @@
|
|||||||
// called by initChildren (calls initWithFile internally)
|
// called by initChildren (calls initWithFile internally)
|
||||||
- (id) initWithFilename:(std::string&)filename command:(DylibCommand*)aCommand document:(MyDocument*)aDocument parent:(MachOModel*)aParent {
|
- (id) initWithFilename:(std::string&)filename command:(DylibCommand*)aCommand document:(MyDocument*)aDocument parent:(MachOModel*)aParent {
|
||||||
BOOL isWeakReference = (command && !command->isNecessary());
|
BOOL isWeakReference = (command && !command->isNecessary());
|
||||||
MachO* aFile;
|
MachO* aFile = nullptr;
|
||||||
MachOArchitecture* anArchitecture;
|
MachOArchitecture* anArchitecture = nullptr;
|
||||||
state = StateNormal;
|
state = StateNormal;
|
||||||
try {
|
try {
|
||||||
aFile = [aDocument cache]->getFile(filename, aParent->file); // throws exception in case file is not found
|
aFile = [aDocument cache]->getFile(filename, aParent->file); // throws exception in case file is not found
|
||||||
|
Loading…
x
Reference in New Issue
Block a user