Merge "updater: Don\'t zero out CommandParameters with memset(3)." am: df59cee am: 4458d3e am: 6bfe76e
am: 187e7c7
* commit '187e7c7ab027af90409371fd08386e6d1c2eac3b':
updater: Don't zero out CommandParameters with memset(3).
Change-Id: I0e894b103a5c1a43a24177707fc1190764c1ea45
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