Remove mResName and remove the hardwire pathname "/data/data".
Make the code robust.
Change-Id: Ia49eda1885ace0f9603cc181ba95d4d63ab586fc
diff --git a/lib/ExecutionEngine/Script.cpp b/lib/ExecutionEngine/Script.cpp
index d43d9cf..1019568 100644
--- a/lib/ExecutionEngine/Script.cpp
+++ b/lib/ExecutionEngine/Script.cpp
@@ -83,8 +83,6 @@
return 1;
}
- mResName = resName;
-
if (mStatus != ScriptStatus::Unknown) {
mErrorCode = BCC_INVALID_OPERATION;
LOGE("Bad operation: Adding source after bccPrepareExecutable\n");
@@ -298,7 +296,7 @@
}
}
- mCompiled->setResName(mResName);
+ mCompiled->setCachePath(mCachePath);
// Compile and JIT the code
if (mCompiled->compile() != 0) {