summaryrefslogtreecommitdiffstats
path: root/updater/install.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2016-11-01 22:25:12 +0100
committerGerrit Code Review <noreply-gerritcodereview@google.com>2016-11-01 22:25:12 +0100
commit3f4030e0ef53c9e308b70788dc53bf0c5cfcd06a (patch)
treecf2bdcc9774bb7199847c5f26a3cc369a68d5f6d /updater/install.cpp
parentMerge "Revert "Some cleanups to recovery."" (diff)
parentapplypatch: Switch the parameter of Value** to std::vector. (diff)
downloadandroid_bootable_recovery-3f4030e0ef53c9e308b70788dc53bf0c5cfcd06a.tar
android_bootable_recovery-3f4030e0ef53c9e308b70788dc53bf0c5cfcd06a.tar.gz
android_bootable_recovery-3f4030e0ef53c9e308b70788dc53bf0c5cfcd06a.tar.bz2
android_bootable_recovery-3f4030e0ef53c9e308b70788dc53bf0c5cfcd06a.tar.lz
android_bootable_recovery-3f4030e0ef53c9e308b70788dc53bf0c5cfcd06a.tar.xz
android_bootable_recovery-3f4030e0ef53c9e308b70788dc53bf0c5cfcd06a.tar.zst
android_bootable_recovery-3f4030e0ef53c9e308b70788dc53bf0c5cfcd06a.zip
Diffstat (limited to '')
-rw-r--r--updater/install.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/updater/install.cpp b/updater/install.cpp
index a41c5db3c..5f3f675b1 100644
--- a/updater/install.cpp
+++ b/updater/install.cpp
@@ -1061,15 +1061,13 @@ Value* ApplyPatchFn(const char* name, State* state, int argc, Expr* argv[]) {
}
std::vector<std::string> patch_sha_str;
- std::vector<Value*> patch_ptrs;
for (int i = 0; i < patchcount; ++i) {
patch_sha_str.push_back(patch_shas[i]->data);
- patch_ptrs.push_back(patches[i].get());
}
int result = applypatch(source_filename, target_filename,
target_sha1, target_size,
- patch_sha_str, patch_ptrs.data(), NULL);
+ patch_sha_str, patches, NULL);
return StringValue(result == 0 ? "t" : "");
}