summaryrefslogtreecommitdiffstats
path: root/updater
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2016-04-27 02:14:32 +0200
committerTao Bao <tbao@google.com>2016-04-27 02:36:13 +0200
commit730646199b8de879621e97d3196d49f8b71afdda (patch)
treee738ad4e5cd08fe68d66b29b57efa9e9f42270e4 /updater
parentMerge "Fix google-runtime-int warnings." (diff)
downloadandroid_bootable_recovery-730646199b8de879621e97d3196d49f8b71afdda.tar
android_bootable_recovery-730646199b8de879621e97d3196d49f8b71afdda.tar.gz
android_bootable_recovery-730646199b8de879621e97d3196d49f8b71afdda.tar.bz2
android_bootable_recovery-730646199b8de879621e97d3196d49f8b71afdda.tar.lz
android_bootable_recovery-730646199b8de879621e97d3196d49f8b71afdda.tar.xz
android_bootable_recovery-730646199b8de879621e97d3196d49f8b71afdda.tar.zst
android_bootable_recovery-730646199b8de879621e97d3196d49f8b71afdda.zip
Diffstat (limited to 'updater')
-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");