diff options
author | Tao Bao <tbao@google.com> | 2016-04-28 06:39:12 +0200 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-04-28 06:39:12 +0200 |
commit | 6bfe76e1fefa7fd4c8f1accb9d8959e382ba7bae (patch) | |
tree | f0543cec95cacb988abfbd36c56a981d8d52b06e /updater/blockimg.cpp | |
parent | Merge "Improve the layout-related comments." into nyc-dev (diff) | |
parent | Merge "updater: Don\'t zero out CommandParameters with memset(3)." (diff) | |
download | android_bootable_recovery-6bfe76e1fefa7fd4c8f1accb9d8959e382ba7bae.tar android_bootable_recovery-6bfe76e1fefa7fd4c8f1accb9d8959e382ba7bae.tar.gz android_bootable_recovery-6bfe76e1fefa7fd4c8f1accb9d8959e382ba7bae.tar.bz2 android_bootable_recovery-6bfe76e1fefa7fd4c8f1accb9d8959e382ba7bae.tar.lz android_bootable_recovery-6bfe76e1fefa7fd4c8f1accb9d8959e382ba7bae.tar.xz android_bootable_recovery-6bfe76e1fefa7fd4c8f1accb9d8959e382ba7bae.tar.zst android_bootable_recovery-6bfe76e1fefa7fd4c8f1accb9d8959e382ba7bae.zip |
Diffstat (limited to 'updater/blockimg.cpp')
-rw-r--r-- | updater/blockimg.cpp | 3 |
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(¶ms, 0, sizeof(params)); + CommandParameters params = {}; params.canwrite = !dryrun; fprintf(stderr, "performing %s\n", dryrun ? "verification" : "update"); |