Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit df59ceec authored by Tao Bao's avatar Tao Bao Committed by Gerrit Code Review
Browse files

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

parents a1f4a1ec 73064619
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -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");