mirror of
https://github.com/status-im/react-native.git
synced 2025-01-27 09:45:04 +00:00
Fix BundleHeader init in CatalystInstanceImpl
Reviewed By: amnn Differential Revision: D4559594 fbshipit-source-id: 14dc9ec20e62a3568056d111aed2f263bcf6ac7e
This commit is contained in:
parent
5263699f90
commit
09fa9da209
@ -196,7 +196,7 @@ bool CatalystInstanceImpl::isIndexedRAMBundle(const char *sourcePath) {
|
||||
if (!bundle_stream) {
|
||||
return false;
|
||||
}
|
||||
BundleHeader header;
|
||||
BundleHeader header{};
|
||||
bundle_stream.read(reinterpret_cast<char *>(&header), sizeof(header));
|
||||
bundle_stream.close();
|
||||
return parseTypeFromHeader(header) == ScriptTag::RAMBundle;
|
||||
|
Loading…
x
Reference in New Issue
Block a user