Merge "updater: Don\'t zero out CommandParameters with memset(3)." am: df59cee
am: 4458d3e
* commit '4458d3e552736facb7b9cd832744d8d47325b4a3':
updater: Don't zero out CommandParameters with memset(3).
Change-Id: Icc996f7c038a1eb9f861108fffc55e552aa0c42c
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user