Merge "updater: Don't zero out CommandParameters with memset(3)."

This commit is contained in:
Tao Bao
2016-04-28 04:28:19 +00:00
committed by Gerrit Code Review
+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[], static Value* PerformBlockImageUpdate(const char* name, State* state, int /* argc */, Expr* argv[],
const Command* commands, size_t cmdcount, bool dryrun) { const Command* commands, size_t cmdcount, bool dryrun) {
CommandParameters params; CommandParameters params = {};
memset(&params, 0, sizeof(params));
params.canwrite = !dryrun; params.canwrite = !dryrun;
fprintf(stderr, "performing %s\n", dryrun ? "verification" : "update"); fprintf(stderr, "performing %s\n", dryrun ? "verification" : "update");