Skip to content

Commit 4b254db

Browse files
committed
check input value to enforce pre-condition
1 parent a530dd8 commit 4b254db

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/vsearch.cc

+3
Original file line numberDiff line numberDiff line change
@@ -5771,6 +5771,9 @@ auto cmd_fastq_mergepairs() -> void
57715771
{
57725772
fatal("No output files specified");
57735773
}
5774+
if (opt_fastq_maxdiffs < 0) {
5775+
fatal("Argument to --fastq_maxdiffs must be positive");
5776+
}
57745777
fastq_mergepairs();
57755778
}
57765779

0 commit comments

Comments
 (0)