Permalink
Browse files

Fix BundleHeader init in CatalystInstanceImpl

Reviewed By: amnn

Differential Revision: D4559594

fbshipit-source-id: 14dc9ec20e62a3568056d111aed2f263bcf6ac7e
  • Loading branch information...
javache authored and facebook-github-bot committed Feb 15, 2017
1 parent 5263699 commit 09fa9da209a8f4c50b2c70d4f0e2085b68e7f329
Showing with 1 addition and 1 deletion.
  1. +1 −1 ReactAndroid/src/main/jni/xreact/jni/CatalystInstanceImpl.cpp
@@ -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;

0 comments on commit 09fa9da

Please sign in to comment.