[nx] Fixed bug in NsoHeader:copyFrom()

Ensure variables are cleared.
This commit is contained in:
jakcron 2018-06-09 23:30:53 +08:00
parent a7b0d8fdd1
commit d169f854cc

View file

@ -311,6 +311,7 @@ bool nx::NsoHeader::isEqual(const NsoHeader& other) const
}
void nx::NsoHeader::copyFrom(const NsoHeader& other)
{
clear();
mModuleId = other.mModuleId;
mBssSize = other.mBssSize;
mTextSegmentInfo = other.mTextSegmentInfo;