summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2016-04-28 06:45:05 +0200
committerandroid-build-merger <android-build-merger@google.com>2016-04-28 06:45:05 +0200
commitd9237d27ea58a21e2231f1f3b4daaf5bf21520d9 (patch)
tree531e718403f0f35e46c4faa390fadf6ae50d66fb
parentMerge "Merge "Improve the layout-related comments." into nyc-dev am: 343eb72 am: 1dc396f" into nyc-mr1-dev-plus-aosp (diff)
parentMerge "updater: Don\'t zero out CommandParameters with memset(3)." am: df59cee am: 4458d3e (diff)
downloadandroid_bootable_recovery-d9237d27ea58a21e2231f1f3b4daaf5bf21520d9.tar
android_bootable_recovery-d9237d27ea58a21e2231f1f3b4daaf5bf21520d9.tar.gz
android_bootable_recovery-d9237d27ea58a21e2231f1f3b4daaf5bf21520d9.tar.bz2
android_bootable_recovery-d9237d27ea58a21e2231f1f3b4daaf5bf21520d9.tar.lz
android_bootable_recovery-d9237d27ea58a21e2231f1f3b4daaf5bf21520d9.tar.xz
android_bootable_recovery-d9237d27ea58a21e2231f1f3b4daaf5bf21520d9.tar.zst
android_bootable_recovery-d9237d27ea58a21e2231f1f3b4daaf5bf21520d9.zip
-rw-r--r--updater/blockimg.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/updater/blockimg.cpp b/updater/blockimg.cpp
index 908e11631..2e30c5bf3 100644
--- a/updater/blockimg.cpp
+++ b/updater/blockimg.cpp
@@ -1318,8 +1318,7 @@ static unsigned int HashString(const char *s) {
static Value* PerformBlockImageUpdate(const char* name, State* state, int /* argc */, Expr* argv[],
const Command* commands, size_t cmdcount, bool dryrun) {
- CommandParameters params;
- memset(&params, 0, sizeof(params));
+ CommandParameters params = {};
params.canwrite = !dryrun;
fprintf(stderr, "performing %s\n", dryrun ? "verification" : "update");