cwfs: fix interpretation of startdump argument

front
Alex Musolino 2020-12-06 13:54:10 +10:30
parent abcc56afef
commit 5d790e08ca
1 changed files with 1 additions and 1 deletions

View File

@ -2281,7 +2281,7 @@ cmd_cwcmd(int argc, char *argv[])
blockcmp(dev, s1, s2);
} else if(strcmp(arg, "startdump") == 0) {
if(argc > 2)
cw->nodump = number(argv[2], 0, 10);
cw->nodump = !number(argv[2], 0, 10);
else
cw->nodump = !cw->nodump;
if(cw->nodump)