Merge "updater: Don\'t zero out CommandParameters with memset(3)." am: df59cee am: 4458d3e

am: 6bfe76e

* commit '6bfe76e1fefa7fd4c8f1accb9d8959e382ba7bae':
  updater: Don't zero out CommandParameters with memset(3).

Change-Id: I057454ed02d17b3fec2fbb4a653b4aedeeee2a43
This commit is contained in:
Tao Bao
2016-04-28 04:42:11 +00:00
committed by android-build-merger
+1 -2
View File
@@ -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");