submission_package: Ensure the 'extracted' member variable is always initialized
If an error occurs when constructing the PartitionFilesystem instance, the constructor would be exited early, which wouldn't initialize the extracted data member, making it possible for other code to perform an uninitialized read by calling the public IsExtractedType() member function. This prevents that.
This commit is contained in:
parent
e4f994749b
commit
8f51371d7b
2 changed files with 1 additions and 3 deletions
|
@ -61,8 +61,6 @@ NSP::NSP(VirtualFile file_)
|
|||
return;
|
||||
}
|
||||
|
||||
extracted = false;
|
||||
|
||||
SetTicketKeys(files);
|
||||
ReadNCAs(files);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue