Commit 94c0a9ca authored by thomas.forbriger's avatar thomas.forbriger
Browse files

croposp [WP]: check range of command line argument

parent ea04ffcb
......@@ -107,6 +107,9 @@ int main(int iargc, char* argv[])
opt.inputformat=cmdline.string_arg(2);
opt.trim=cmdline.optset(3);
opt.datetolerance=cmdline.double_arg(4);
TFXX_assert(((opt.datetolerance >= 0.) && (opt.datetolerance <=1.)),
"datetolerance is out of accepted range");
// extract commandline arguments
TFXX_assert(cmdline.extra(), "missing input file");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment