Fix BundleHeader init in CatalystInstanceImpl

Reviewed By: amnn

Differential Revision: D4559594

fbshipit-source-id: 14dc9ec20e62a3568056d111aed2f263bcf6ac7e
This commit is contained in:
Pieter De Baets 2017-02-14 16:46:47 -08:00 committed by Facebook Github Bot
parent 5263699f90
commit 09fa9da209

View File

@ -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;