mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-13 06:16:55 -04:00
Check decratio
value range
This commit is contained in:
parent
86d04f3937
commit
22f00b0b60
@ -650,6 +650,11 @@ int run_dwarfs(int argc, char* argv[]) {
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (s_opts.decompress_ratio < 0.0 || s_opts.decompress_ratio > 1.0) {
|
||||||
|
std::cerr << "error: decratio must be between 0.0 and 1.0" << std::endl;
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
if (!s_opts.seen_mountpoint) {
|
if (!s_opts.seen_mountpoint) {
|
||||||
usage(s_opts.progname);
|
usage(s_opts.progname);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user