Fix BundleHeader init in CatalystInstanceImpl

Reviewed By: amnn

Differential Revision: D4559594

fbshipit-source-id: 14dc9ec20e62a3568056d111aed2f263bcf6ac7e
This commit is contained in:
Pieter De Baets authored and Facebook Github Bot committed 2017-02-14 17:01:10 -08:00
1 parent 5263699f90
commit 09fa9da209
1 file changed
+1 -1
@@ -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;